forked from sngxpro/AutoSyncScript
-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (26 loc) · 693 Bytes
/
Copy pathbak1.yml
File metadata and controls
27 lines (26 loc) · 693 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
name: DomaUmaruUMR
on:
workflow_dispatch:
watch:
types: started
#push:
# branches: [ main ]
repository_dispatch:
types: 同步仓库
jobs:
repo-sync:
env:
PAT: ${{ secrets.PAT || github.event.client_payload.PAT }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: sync My-Actions
uses: repo-sync/github-sync@v2
if: env.PAT
with:
source_repo: "https://github.com/DomaUmaruUMR/bak1.git"
source_branch: "main"
destination_branch: "DomaUmaruUMR"
github_token: ${{ secrets.PAT || github.event.client_payload.PAT }}