update #868
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: update | |
on: | |
schedule: | |
- cron: "0 21 * * 5" | |
jobs: | |
build: | |
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.7 #install the python needed | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install matplotlib requests | |
- name: execute main # run the run.py to get the latest data | |
run: | | |
python main.py | |
- name: Commit changes | |
run: | | |
git config --global user.name 'Actions' | |
git config --global user.email '[email protected]' | |
git add | |
git commit -am "Auto new data gather and graphs update" | |
git push | |