Skip to content

Commit

Permalink
Add cron-ed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sdruskat committed Dec 8, 2021
1 parent 656c131 commit 9896723
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: update

on:
schedule:
- cron: "0 22 * * *" #runs at 22:00 UTC everyday

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: checkout repo content
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: execute py script # run the run.py to get the latest data
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
env:
key: ${{ GITHUB_TOKEN }} # if run.py requires passwords..etc, set it as secrets
- name: update_count
run: |
python query_api.py
python plot.py

0 comments on commit 9896723

Please sign in to comment.