This repository was archived by the owner on Dec 31, 2025. It is now read-only.
Generate game info #442
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Generate game info | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| jobs: | |
| get_info: | |
| uses: MrKev312/AmiiboGamelistGenerator/.github/workflows/game_info.yml@main | |
| with: | |
| repo: MrKev312/AmiiboGamelistGenerator | |
| repo-ref: main | |
| report: | |
| runs-on: ubuntu-latest | |
| needs: [get_info] | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: dev | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: games_info | |
| path: database/ | |
| - name: Commit json files | |
| shell: pwsh | |
| run: | | |
| git config --global user.name 'N3evin (Automated)' | |
| git config --global user.email '2455104+N3evin@users.noreply.github.com' | |
| git pull origin dev | |
| git add -A database/games_info.json | |
| if(git commit -m "[Automated] Update: $(git diff --name-only --staged)") { | |
| git push | |
| } |