Skip to content

Commit 807bd49

Browse files
authored
Update sync_with_upstream.yml
1 parent 677ccf7 commit 807bd49

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/sync_with_upstream.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,15 @@ jobs:
1313
uses: actions/checkout@v2
1414
with:
1515
fetch-depth: 0 # 获取完整的历史记录
16-
token: ${{ secrets.WORKFLOW }} # 使用 PAT 代替默认的 GITHUB_TOKEN
1716

1817
- name: Set Git Config
1918
run: |
2019
git config --local user.email "admin@leongo.com"
2120
git config --local user.name "Leon"
22-
2321
- name: Sync with Upstream
2422
run: |
2523
git remote add upstream https://github.com/tindy2013/subconverter.git
2624
git fetch upstream
2725
git checkout master # 或其他你的默认分支名
2826
git merge upstream/master # 或其他原仓库的默认分支名
29-
git push --force origin master # 推送更新到你的仓库,使用 PAT 进行认证
30-
27+
git push origin master # 推送更新到你的仓库

0 commit comments

Comments
 (0)