mirror of
https://github.com/Dasemu/chatgpt-imagegen-mcp.git
synced 2026-11-27 07:46:33 +00:00
fix(ci): skip merge-back when development branch does not exist
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013GcqSedBUqMukP6UAGET1w
This commit is contained in:
1 parent
bba3fee23a
commit
6619b43bb2
1 file changed
+5
-1
@@ -50,7 +50,11 @@ jobs:
|
|||||||
- name: Merge main back into development
|
- name: Merge main back into development
|
||||||
if: github.ref_name == 'main'
|
if: github.ref_name == 'main'
|
||||||
run: |
|
run: |
|
||||||
|
if ! git ls-remote --exit-code --heads origin development >/dev/null; then
|
||||||
|
echo "No development branch; nothing to merge back."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
git fetch origin development
|
git fetch origin development
|
||||||
git checkout development
|
git checkout -B development origin/development
|
||||||
git merge --no-ff origin/main -m "chore: merge main into development [skip ci]"
|
git merge --no-ff origin/main -m "chore: merge main into development [skip ci]"
|
||||||
git push origin development
|
git push origin development
|
||||||
Reference in new issue
Block a user