mirror of
https://github.com/Dasemu/Logseq-SemiLinear-Graph.git
synced 2026-11-26 15:26:18 +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_01AHVrQYaFYS13BzmDfDp3cQ
This commit is contained in:
1 parent
9ff19e49e8
commit
756b511422
1 file changed
+4
@@ -59,6 +59,10 @@ 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 yet; nothing to merge back."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
git fetch origin development
|
git fetch origin development
|
||||||
git checkout development
|
git checkout development
|
||||||
git merge --no-edit origin/main
|
git merge --no-edit origin/main
|
||||||
|
|||||||
Reference in new issue
Block a user