Skip to content

Commit db6e8e9

Browse files
author
微信公众号少年歌行PRO
authored
Create ziye.yml
1 parent 7e11493 commit db6e8e9

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ziye.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## ziye 新仓库自动定时同步代码 ,教程公众号文章讲过了,不废话了,地址https://mp.weixin.qq.com/s/fcI4vQHD8TNajvTML9g3AA
2+
3+
4+
5+
6+
name: ziye-sync
7+
on:
8+
schedule:
9+
- cron: '1 */3 * * *'
10+
workflow_dispatch:
11+
watch:
12+
types: started
13+
repository_dispatch:
14+
types: sync-ziye888-JavaScript
15+
jobs:
16+
repo-sync:
17+
env:
18+
PAT: ${{ secrets.PAT }}
19+
runs-on: ubuntu-latest
20+
if: github.event.repository.owner.id == github.event.sender.id
21+
steps:
22+
- uses: actions/checkout@v2
23+
with:
24+
persist-credentials: false
25+
26+
- name: sync ziye888-JavaScript
27+
uses: repo-sync/github-sync@v2
28+
if: env.PAT
29+
with:
30+
source_repo: "https://github.com/ziye888/JavaScript.git"
31+
source_branch: "main"
32+
destination_branch: "ZIYE"
33+
github_token: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)