Update Game Data #7
Workflow file for this run
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: Update Game Data | |
on: | |
schedule: | |
- cron: '0 6 * * *' # every day at 6am UTC | |
workflow_dispatch: # allows manual triggering | |
permissions: | |
contents: write | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 # checkout the repository content | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' # install the python version needed | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run Script | |
run: python run.py | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 # commit changes | |
with: | |
commit_message: Update Game Data | |