Generate game info #126
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: 8bitDream/AmiiboGamelistGenerator/.github/workflows/game_info.yml@main | |
| with: | |
| repo: 8bitDream/AmiiboGamelistGenerator | |
| repo-ref: main | |
| report: | |
| runs-on: ubuntu-latest | |
| needs: [get_info] | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: dev | |
| - name: Download artifact | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: games_info | |
| path: database/ | |
| - name: Commit json files | |
| shell: pwsh | |
| run: | | |
| git config --local user.name 'AmiiboAPI (Automated)' | |
| git config --local user.email '41898282+github-actions[bot]@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 | |
| } |