diff --git a/.github/go.mod b/.github/go.mod index 44c1fb9..5ecbdcc 100644 --- a/.github/go.mod +++ b/.github/go.mod @@ -2,4 +2,4 @@ module ra-code-notes go 1.23.0 -require github.com/joshraphael/go-retroachievements v1.0.0 \ No newline at end of file +require github.com/joshraphael/go-retroachievements v1.0.1 \ No newline at end of file diff --git a/.github/go.sum b/.github/go.sum index 80805c0..a2ccf91 100644 --- a/.github/go.sum +++ b/.github/go.sum @@ -1,2 +1,2 @@ -github.com/joshraphael/go-retroachievements v1.0.0 h1:Hu1bitG8r9O8AZWx7BfGOyVo9Sga3phxQBq0b8Q/3vQ= -github.com/joshraphael/go-retroachievements v1.0.0/go.mod h1:C+9vQbOqyRJmnFt8XIJ5gwRot+AZS/acnaESp45jtCc= +github.com/joshraphael/go-retroachievements v1.0.1 h1:fhH9y8VIBSDhAumvBVEqsCkJXQ+C/pgdq5aMHNJ2vBY= +github.com/joshraphael/go-retroachievements v1.0.1/go.mod h1:C+9vQbOqyRJmnFt8XIJ5gwRot+AZS/acnaESp45jtCc= diff --git a/.github/main.go b/.github/main.go index cf1f48b..ea9c052 100644 --- a/.github/main.go +++ b/.github/main.go @@ -12,7 +12,7 @@ import ( func main() { client := retroachievements.New(retroachievements.ClientConfig{ Host: retroachievements.RetroAchievementHost, - UserAgent: "go-retroachievements/v1.0.0", + UserAgent: "go-retroachievements/v1.0.1", }) notes, err := client.GetCodeNotes(models.GetCodeNotesParameters{ GameID: 4111, diff --git a/.github/workflows/autocr.yaml b/.github/workflows/autocr.yaml deleted file mode 100644 index 9bb84c0..0000000 --- a/.github/workflows/autocr.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: AutoCR - -on: - workflow_run: - workflows: ["Test"] - types: - - completed - -permissions: - contents: write - pull-requests: write - -jobs: - autocr: - name: autocr - runs-on: ubuntu-latest - steps: - - name: Download Code Notes - uses: actions/download-artifact@v4 - with: - name: notes-json - - - name: Download Achievement and Leaderboard Code - uses: actions/download-artifact@v4 - with: - name: user-text - - - name: Download Rich Presence - uses: actions/download-artifact@v4 - with: - name: rich-text \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 18fa507..b1a907e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -73,4 +73,39 @@ jobs: uses: actions/upload-artifact@v4 with: name: rich-text - path: ${{env.RALIBRETRO_DIR}}/RACache/Data/4111-Rich.txt \ No newline at end of file + path: ${{env.RALIBRETRO_DIR}}/RACache/Data/4111-Rich.txt + + autocr: + name: AutoCR + needs: compile + runs-on: ubuntu-latest + env: + GAME_ID: 4111 + steps: + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + + - name: Checkout tools repo + uses: actions/checkout@v4 + with: + repository: joshraphael/autocr-cli + + - name: Download Code Notes + uses: actions/download-artifact@v4 + with: + name: notes-json + + - name: Download Achievement and Leaderboard Code + uses: actions/download-artifact@v4 + with: + name: user-text + + - name: Download Rich Presence + uses: actions/download-artifact@v4 + with: + name: rich-text + + - name: Run AutoCR + run: ./index.js --notes ${{env.GAME_ID}}-Notes.json --user ${{env.GAME_ID}}-User.txt --rich ${{env.GAME_ID}}-Rich.txt --severity error \ No newline at end of file