diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 61a9188..53cce0d 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -50,7 +50,11 @@ 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; nothing to merge back." + exit 0 + fi 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 push origin development