Skip to content

Commit f2b9a23

Browse files
committed
add workflow to merge main barnch with dev on daily basis
1 parent a27e855 commit f2b9a23

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Merge Main to Dev
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Run daily at midnight UTC
6+
7+
jobs:
8+
merge:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Merge Main to Dev
16+
run: |
17+
git checkout dev
18+
git pull origin dev
19+
git fetch origin main
20+
git merge origin/main --no-edit
21+
git push origin dev

0 commit comments

Comments
 (0)