forked from sngxpro/AutoSyncScript
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 859 Bytes
/
ziye.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
## ziye 新仓库自动定时同步代码 ,教程公众号文章讲过了,不废话了,地址https://mp.weixin.qq.com/s/fcI4vQHD8TNajvTML9g3AA
name: ziye-sync
on:
schedule:
- cron: '1 */3 * * *'
workflow_dispatch:
watch:
types: started
repository_dispatch:
types: sync-ziye888-JavaScript
jobs:
repo-sync:
env:
PAT: ${{ secrets.PAT }}
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: sync ziye888-JavaScript
uses: repo-sync/github-sync@v2
if: env.PAT
with:
source_repo: "https://github.com/ziye888/JavaScript.git"
source_branch: "main"
destination_branch: "ZIYE"
github_token: ${{ secrets.PAT }}