Skip to content

daily

daily #927

Workflow file for this run

name: daily
on:
schedule:
- cron: "0 0 * * *"
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner.
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8 #install the python needed
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run the run.py to get the latest data
run: |
python Weekly.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if run.py requires passwords..etc, set it as secrets
- name: commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Daily stats update