Skip to content

Commit 7e8d55a

Browse files
authored
Update main.yml
1 parent ca16325 commit 7e8d55a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ on:
77

88
permissions:
99
contents: write
10-
1110
jobs:
1211
sync:
1312
runs-on: ubuntu-latest
1413
steps:
1514
- name: Checkout Fork
1615
uses: actions/checkout@v4
1716
with:
18-
token: ${{ secrets.GITHUB_TOKEN }}
17+
token: ${{ secrets.PAT_TOKEN }}
1918
fetch-depth: 0
2019

2120
- name: Sync with Upstream
@@ -26,9 +25,7 @@ jobs:
2625
git remote add upstream https://github.com/Fanju6/NetProxy-Magisk.git
2726
git fetch upstream
2827
29-
# 强制使用上游的 main 分支
3028
git checkout main
3129
git reset --hard upstream/main
3230
33-
# 强制推送到 Fork
3431
git push origin main --force

0 commit comments

Comments
 (0)