We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d47ddc commit dd38e2eCopy full SHA for dd38e2e
.github/workflows/sync.yml
@@ -0,0 +1,22 @@
1
+name: Sync(手动执行接换到部署分支)
2
+on:
3
+ workflow_dispatch:
4
+jobs:
5
+ repo-sync:
6
+ env:
7
+ PAT: ${{ secrets.PAT }} #此处PAT需要申请,教程详见:https://www.jianshu.com/p/bb82b3ad1d11,需要repo和workflow权限
8
+ runs-on: ubuntu-latest
9
+ timeout-minutes: 3
10
+ if: github.event.repository.owner.id == github.event.sender.id
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ with:
14
+ persist-credentials: false
15
+ - name: sync zero205-scripts
16
+ uses: repo-sync/github-sync@v2
17
+ if: env.PAT
18
19
+ source_repo: "https://github.com/zero205/JD_tencent_scf.git"
20
+ source_branch: "scf"
21
+ destination_branch: "main"
22
+ github_token: ${{ secrets.PAT }}
0 commit comments