Skip to content

Commit 3e4e8ad

Browse files
authored
Create mainsync.yml
test Signed-off-by: dotnetstd <[email protected]>
1 parent 1afd090 commit 3e4e8ad

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/mainsync.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Upstream Sync
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
schedule:
8+
- cron: "0 0 * * *"
9+
workflow_dispatch:
10+
11+
jobs:
12+
sync_with_upstream:
13+
name: Sync with Upstream
14+
runs-on: ubuntu-latest
15+
if: ${{ github.event.repository.fork }}
16+
17+
steps:
18+
- name: Checkout target repo
19+
uses: actions/checkout@v3
20+
21+
- name: Sync Upstream
22+
uses: aormsby/[email protected]
23+
with:
24+
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
25+
upstream_sync_repo: dotnetcore/BootstrapBlazor
26+
upstream_sync_branch: main
27+
target_sync_branch: main
28+
test_mode: false
29+
30+
- name: Check for Failure
31+
if: failure()
32+
run: |
33+
echo "[Error] Due to a change in the workflow file of the upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork."
34+
exit 1

0 commit comments

Comments
 (0)