Skip to content

Commit 245484f

Browse files
Create git-sync.yml
add automation action to sync the repo with mainline
1 parent 24d479d commit 245484f

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

‎.github/workflows/git-sync.yml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: git sync (Upstream → Fork)
2+
3+
on:
4+
schedule:
5+
# Daily at 22:30 IST ≈ 17:00 UTC (adjust to your preferred time)
6+
- cron: '0 17 * * *'
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
sync:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout default branch
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0 # non-shallow for clean merges
20+
21+
- name: Upstream Sync
22+
uses: aormsby/Fork-Sync-With-Upstream-action@v3
23+
with:
24+
target_sync_branch: master
25+
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
26+
upstream_sync_repo: torvalds/linux
27+
upstream_sync_branch: master

0 commit comments

Comments
 (0)