Skip to content

Commit bae7310

Browse files
authored
Create sync.yml
1 parent ef07bc7 commit bae7310

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/sync.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Sync Fork
2+
3+
on:
4+
schedule:
5+
- cron: '0 5 * * *' # This will run the workflow daily at midnight
6+
# workflow_dispatch: # This allows manual triggering
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Sync fork
16+
uses: aormsby/Fork-Sync-With-Upstream-action@v2.3
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
upstream_repository: jamesqquick/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript # Replace with the original repo's username and name
20+
target_branch: main # Replace with the branch you want to sync

0 commit comments

Comments
 (0)