Skip to content

Commit 3f8795c

Browse files
authored
Update update-subscriptions.yml
1 parent ff1903a commit 3f8795c

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/update-subscriptions.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,29 @@ name: update
22

33
on:
44
schedule:
5-
- cron: '0 */2 * * *'
5+
- cron: '0 */3 * * *'
66
workflow_dispatch:
77

88
jobs:
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

0 commit comments

Comments
 (0)