Skip to content

Commit 6d8e90e

Browse files
committed
ci(workflows): call the shared merge workflow to sync development to main
1 parent ac4e450 commit 6d8e90e

1 file changed

Lines changed: 4 additions & 29 deletions

File tree

‎.github/workflows/sync-development-to-main.yml‎

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,7 @@ permissions:
1010

1111
jobs:
1212
merge:
13-
runs-on: ubuntu-latest
14-
15-
steps:
16-
- name: Checkout Repository
17-
uses: actions/checkout@v4
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-
if ! git merge --no-ff development -m "Automated merge from development to main"; then
34-
echo "Merge conflict detected, auto-resolving README.md..."
35-
git checkout main -- README.md 2>/dev/null || git rm README.md 2>/dev/null || true
36-
git add -A
37-
git commit --no-edit
38-
fi
39-
40-
- name: Push Changes
41-
run: git push origin main
13+
uses: intisy/workflows/.github/workflows/merge.yml@main
14+
with:
15+
source: development
16+
target: main

0 commit comments

Comments
 (0)