Skip to content

Commit dd38e2e

Browse files
committed
update
1 parent 7d47ddc commit dd38e2e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/sync.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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

Comments
 (0)