From 756b511422585fd5fe94f9cf735a5d3ccf4698c3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 18 Oct 2026 18:31:48 +0000 Subject: [PATCH] fix(ci): skip merge-back when development branch does not exist Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01AHVrQYaFYS13BzmDfDp3cQ --- .github/workflows/version.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index e6a1b1a..e864fcf 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -59,6 +59,10 @@ jobs: - name: Merge main back into development if: github.ref_name == 'main' 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 checkout development git merge --no-edit origin/main