Skip to content

Commit 4328bbc

Browse files
committed
Create sync-development-to-main.yml
1 parent f8ce8fe commit 4328bbc

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Sync Development to Main
2+
3+
on:
4+
push:
5+
branches:
6+
- development
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
merge:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Set up Git
22+
run: |
23+
git config user.name "github-actions[bot]"
24+
git config user.email "github-actions[bot]@users.noreply.github.com"
25+
26+
- name: Fetch and Checkout Main
27+
run: |
28+
git fetch origin
29+
git checkout main
30+
31+
- name: Merge Development into Main
32+
run: |
33+
git merge --no-ff development -m "Automated merge from development to main"
34+
35+
- name: Push Changes
36+
run: git push origin main

0 commit comments

Comments
 (0)