track downloads #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: track downloads | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 12 * * 1" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v3 # checkout the repository content to github runner. | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 #install the python needed | |
- name: install requirements | |
run: pip install PyGithub requests_html pandas matplotlib lxml==5.1.0 | |
- name: execute py script # run the run.py to get the latest data | |
run: | | |
python admin/update_tracker.py | |
env: | |
key: ${{ secrets.key }} |