We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8ce8fe commit 4328bbcCopy full SHA for 4328bbc
1 file changed
.github/workflows/sync-development-to-main.yml
@@ -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
28
+ git fetch origin
29
+ git checkout main
30
31
+ - name: Merge Development into Main
32
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