Skip to content

Update Game Data

Update Game Data #5

Workflow file for this run

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