Skip to content

Commit 9eb8608

Browse files
committed
update workflow for release branch again
1 parent 3d2633a commit 9eb8608

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
RELEASE_BRANCH="release/${TAG_NAME}"
4242
4343
# Check if branch exists on GitHub
44-
if gh api --silent --fail-silently repos/:owner/:repo/branches/$RELEASE_BRANCH; then
44+
gh api repos/:owner/:repo/branches/$RELEASE_BRANCH >/dev/null 2>&1
45+
if [ $? -eq 0 ]; then
4546
echo "Branch exists on GitHub, deleting..."
4647
gh api -X DELETE repos/:owner/:repo/git/refs/heads/$RELEASE_BRANCH
4748
fi

0 commit comments

Comments
 (0)