Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbfc0df

Browse files
author
微信公众号少年歌行PRO
authored
Create main.yml
1 parent 82d25a1 commit bbfc0df

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/main.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: passerby-b-sync
2+
on:
3+
schedule:
4+
- cron: '12 */3 * * *'
5+
workflow_dispatch:
6+
watch:
7+
types: started
8+
repository_dispatch:
9+
types: sync-passerby-b-JavaScript
10+
jobs:
11+
repo-sync:
12+
env:
13+
PAT: ${{ secrets.PAT }}
14+
runs-on: ubuntu-latest
15+
if: github.event.repository.owner.id == github.event.sender.id
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
persist-credentials: false
20+
21+
- name: sync passerby-b-JavaScript
22+
uses: repo-sync/github-sync@v2
23+
if: env.PAT
24+
with:
25+
source_repo: "https://github.com/passerby-b/JDDJ.git"
26+
source_branch: "main"
27+
destination_branch: "passerby-b"
28+
github_token: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)