Counting summary once a day #1209
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: Counting summary once a day | |
on: | |
schedule: | |
- cron: '0 8 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Regenerating content. The commit would fail if nothing changes | |
run: | | |
echo this is a simple workflow which will run automatically upon each push. | |
cd src | |
pip3 install --upgrade setuptools | |
pip3 install -r requirement.txt | |
python3 counting.py | |
python3 shields.py | |
cd heroes | |
python3 search_repo.py | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git commit -m "Counting summary once a day" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |