-
Notifications
You must be signed in to change notification settings - Fork 53
36 lines (29 loc) · 887 Bytes
/
counting.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 }}