Skip to content

Commit 47e6833

Browse files
committed
ci(fix): use PAT token
1 parent 4856311 commit 47e6833

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cron.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v4
1616
with:
17-
token: ${{ secrets.GITHUB_TOKEN }}
17+
token: ${{ secrets.GH_TOKEN }}
1818
- name: Setup Node.js
1919
uses: actions/setup-node@v4
2020
with:
@@ -33,7 +33,7 @@ jobs:
3333
DEBUG="ua*" node bin/update.js
3434
git add src/index.json src/desktop.json src/mobile.json
3535
git diff-index --quiet HEAD || git commit -m 'build(update): user agents' --no-verify
36-
git push || true
36+
git push origin ${{ github.head_ref }} || true
3737
curl -fsS -m 10 --retry 5 -o /dev/null https://hc-ping.com/2345b25e-fe7d-4efd-b085-5886e6c85cc7
3838
flush:
3939
needs: [update]

0 commit comments

Comments
 (0)