Skip to content

Weekly Download

Weekly Download #4

Workflow file for this run

name: Weekly Download
on:
schedule:
- cron: "0 12 * * 0"
workflow_dispatch:
jobs:
weekly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: "3.12.3"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Download
run: python ./main.py
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add data/
git diff --quiet && git diff --staged --quiet || (git commit -m "Update dataset: $(date +'%Y-%m-%d %H:%M')" && git push)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}