We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f7b07e commit f08d343Copy full SHA for f08d343
.github/workflows/release.yml
@@ -41,10 +41,11 @@ jobs:
41
RELEASE_BRANCH="release/${TAG_NAME}"
42
43
# 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
+ if gh api repos/:owner/:repo/branches/$RELEASE_BRANCH >/dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ echo "Branch exists on GitHub, deleting..."
+ gh api -X DELETE repos/:owner/:repo/git/refs/heads/$RELEASE_BRANCH
48
+ fi
49
fi
50
51
# Create and push new release branch
0 commit comments