Skip to content

Commit 14bd7c4

Browse files
Copilotanimesh-garg
andcommitted
ci: add workflow to sync fork from upstream main
Co-authored-by: animesh-garg <1613964+animesh-garg@users.noreply.github.com>
1 parent 42b98d3 commit 14bd7c4

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Sync fork with upstream
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 3 * * 1"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
sync-upstream:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Configure Git
21+
run: |
22+
git config user.name "github-actions[bot]"
23+
git config user.email "github-actions[bot]@users.noreply.github.com"
24+
25+
- name: Merge upstream main into fork main
26+
run: |
27+
git remote add upstream https://github.com/alshedivat/al-folio.git
28+
git fetch upstream main
29+
git checkout main
30+
git merge --no-edit upstream/main
31+
git push origin main

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)