.github/workflows/update.yml #83
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
on: | |
schedule: | |
- cron: '53 20,8 * * *' | |
push: | |
branches: | |
- master | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: master | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- run: pip install requests | |
- run: python update_config.py | |
- run: python update_game.py | |
- run: python update_mumu.py | |
- run: rm -rf data/excel/ | |
- run: mkdir -p tmp/ | |
- uses: actions/checkout@v3 | |
with: | |
repository: Kengxxiao/ArknightsGameData | |
path: tmp/ | |
sparse-checkout: zh_CN/gamedata/excel/ | |
- run: mv tmp/zh_CN/gamedata/excel/ data/ | |
- run: rm -rf tmp/ | |
- run: rm -rf data-global/excel/ | |
- run: mkdir -p tmp/ | |
- uses: actions/checkout@v3 | |
with: | |
repository: Kengxxiao/ArknightsGameData_YoStar | |
path: tmp/ | |
sparse-checkout: en_US/gamedata/excel/ | |
- run: mv tmp/en_US/gamedata/excel/ data-global/ | |
- run: rm -rf tmp/ | |
- run: python update_activity.py | |
- run: git config --global user.name 'github-actions[bot]' | |
- run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
- run: git add . && git commit -m 'automatic update' && git push origin master || true |