update requirements. #109
This file contains 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: | |
push: | |
branches: [dev] | |
workflow_dispatch: | |
jobs: | |
report: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Copy amiibo.json to gameinfo_generator | |
run: | | |
copy-item database/amiibo.json gameinfo_generator | |
shell: powershell | |
- name: Run game_info generator | |
working-directory: ./gameinfo_generator | |
run: | | |
AmiiboGameList.exe -log 0 | |
shell: cmd | |
- name: Copy games_info.json to database folder | |
run: | | |
copy-item gameinfo_generator/games_info.json database | |
shell: powershell | |
- name: Commit json files | |
run: | | |
git config --global user.name 'N3evin (Automated)' | |
git config --global user.email 'N3evin@users.noreply.github.com' | |
git pull | |
git add -A database/games_info.json | |
if(git commit -m "[Automated] Update: $(git diff --name-only --staged)") { | |
git push | |
} |