-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (27 loc) · 940 Bytes
/
update-data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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