forked from ziye66666/JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepo_sync.yml
More file actions
31 lines (29 loc) · 746 Bytes
/
repo_sync.yml
File metadata and controls
31 lines (29 loc) · 746 Bytes
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
name: sync-script
on:
schedule:
- cron: '0 */4 * * *'
workflow_dispatch:
watch:
types: starte
push:
branches: [ master ]
repository_dispatch:
types: sync-repo
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 script
uses: repo-sync/github-sync@v2
if: env.PAT
with:
source_repo: "https://github.com/6Svip120apk69/gitee_q8qsTAUA_JavaScriptss.git"
source_branch: "master"
destination_branch: "main"
github_token: ${{ secrets.PAT }}