Skip to content

Commit 47bdcc7

Browse files
Merge pull request #30 from brainelectronics/bugfix/fix-release-branch-creation
Fix failing deploy pipeline if release branch does not yet exist
2 parents e0f7d2e + 4e090d5 commit 47bdcc7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,13 @@ jobs:
7676
cat changelog.json
7777
DESIRED_BRANCH="release/${LATEST_CHANGELOG_VERSION}"
7878
echo "DESIRED_BRANCH: ${DESIRED_BRANCH}"
79+
set +e
7980
git ls-remote \
8081
--exit-code \
8182
--heads \
8283
origin ${DESIRED_BRANCH} >/dev/null 2>&1
8384
EXIT_CODE=$?
85+
set -e
8486
echo "EXIT_CODE: ${EXIT_CODE}"
8587
if [[ ${EXIT_CODE} == '0' ]]; then
8688
echo "Git branch '${DESIRED_BRANCH}' exists on remote"

0 commit comments

Comments
 (0)