File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,23 +2,29 @@ name: update
22
33on :
44 schedule :
5- - cron : ' 0 */2 * * *'
5+ - cron : ' 0 */3 * * *'
66 workflow_dispatch :
77
88jobs :
99 build :
1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v4
13+ with :
14+ token : ${{ secrets.MY_PAT }} # ← ЭТО ВАЖНО!
15+
1316 - uses : actions/setup-python@v5
1417 with :
1518 python-version : ' 3.10'
19+
1620 - run : pip install aiohttp
21+
1722 - working-directory : ./source
1823 run : python parser.py
24+
1925 - run : |
20- git config user.name github-actions
21- git config user.email [email protected] 22- git add .
23- git commit -m "update" || exit 0
26+ git config --global user.name ' github-actions'
27+ git config --global user.email ' [email protected] ' 28+ git add deploy/
29+ git commit -m "update $(date +'%Y-%m-%d') " || exit 0
2430 git push
You can’t perform that action at this time.
0 commit comments