We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dac254 commit 66fbebbCopy full SHA for 66fbebb
1 file changed
.github/workflows/NobyDa.yml
@@ -0,0 +1,34 @@
1
+## NobyDa 新仓库自动定时同步代码 ,教程公众号文章讲过了,不废话了,地址https://mp.weixin.qq.com/s/fcI4vQHD8TNajvTML9g3AA
2
+
3
+## 每隔3小时拉取一次作者脚本到自己仓库的sunert分支
4
5
6
7
+name: Sunert-sync
8
+on:
9
+ schedule:
10
+ - cron: '6 */3 * * *'
11
+ workflow_dispatch:
12
+ watch:
13
+ types: started
14
+ repository_dispatch:
15
+ types: sync-NobyDa-Script
16
+jobs:
17
+ repo-sync:
18
+ env:
19
+ PAT: ${{ secrets.PAT }}
20
+ runs-on: ubuntu-latest
21
+ if: github.event.repository.owner.id == github.event.sender.id
22
+ steps:
23
+ - uses: actions/checkout@v2
24
+ with:
25
+ persist-credentials: false
26
27
+ - name: sync NobyDa-Script
28
+ uses: repo-sync/github-sync@v2
29
+ if: env.PAT
30
31
+ source_repo: "https://github.com/NobyDa/Script.git"
32
+ source_branch: "master"
33
+ destination_branch: "NobyDa"
34
+ github_token: ${{ secrets.PAT }}
0 commit comments