Skip to content

Commit f08d343

Browse files
committed
attmept at fixing release workflow
1 parent 5f7b07e commit f08d343

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ jobs:
4141
RELEASE_BRANCH="release/${TAG_NAME}"
4242
4343
# Check if branch exists on GitHub
44-
gh api repos/:owner/:repo/branches/$RELEASE_BRANCH >/dev/null 2>&1
45-
if [ $? -eq 0 ]; then
46-
echo "Branch exists on GitHub, deleting..."
47-
gh api -X DELETE repos/:owner/:repo/git/refs/heads/$RELEASE_BRANCH
44+
if gh api repos/:owner/:repo/branches/$RELEASE_BRANCH >/dev/null 2>&1
45+
if [ $? -eq 0 ]; then
46+
echo "Branch exists on GitHub, deleting..."
47+
gh api -X DELETE repos/:owner/:repo/git/refs/heads/$RELEASE_BRANCH
48+
fi
4849
fi
4950
5051
# Create and push new release branch

0 commit comments

Comments
 (0)