Skip to content

Counting summary once a day #1199

Counting summary once a day

Counting summary once a day #1199

Workflow file for this run

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 "action@github.com"
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 }}