forked from frankiejun/serv00-play
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.1 KB
/
Copy pathsync.yml
File metadata and controls
40 lines (33 loc) · 1.1 KB
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
34
35
36
37
38
39
40
name: Sync Fork with Upstream
on:
schedule:
- cron: '0 19 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
sync_latest_from_upstream:
name: Sync latest commits from upstream repo
runs-on: ubuntu-latest
if: ${{ github.event.repository.fork }}
steps:
# Step 1: run a standard checkout action
- name: Checkout target repo
uses: actions/checkout@v3
# Step 2: run the sync action
- name: Sync upstream changes
id: sync
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
with:
upstream_sync_repo: frankiejun/serv00-play
upstream_sync_branch: main
target_sync_branch: main
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set
exclude: |
.github/workflows/sync.yml
- name: Check for errors
if: failure()
run: echo "Sync failed! Please check the logs for more details."
- name: Sync success message
if: success()
run: echo "Sync completed successfully!"