Skip to content

Commit 7abc12c

Browse files
committed
add action to sync repo
1 parent a807171 commit 7abc12c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/sync-fork.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Update fork
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
workflow_dispatch:
6+
7+
obs:
8+
sync_with_upstream:
9+
runs-on: ubuntu-latest
10+
name: Sync main with upstream latest
11+
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v5
15+
with:
16+
ref: main
17+
18+
- name: sync fork
19+
id: sync
20+
uses: XueMoMo/Sync-Fork-action@v1.0.6
21+
with:
22+
upstream_repository: CaddyBuilds/caddy-cloudflare
23+
upstream_branch: main
24+
target_branch: main
25+
26+
- name: Timestamp
27+
run: date

0 commit comments

Comments
 (0)