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.
2 parents e0193ac + 579e425 commit 7013520Copy full SHA for 7013520
.github/workflows/prepare-release.yml
@@ -61,10 +61,7 @@ jobs:
61
env:
62
GITHUB_TOKEN: ${{ github.token }}
63
run: |
64
- # Don't fail the step if gh fails to find the release
65
- set +e
66
-
67
- release=$(gh release view v$RELEASE_VERSION --json name,isDraft)
+ release=$( { gh release view "v$RELEASE_VERSION" --json name,isDraft; } || echo "" )
68
if [[ -z "$release" ]]; then
69
echo "Release v$RELEASE_VERSION does not exist. Proceeding"
70
echo "create_draft_release=true" >> "$GITHUB_ENV"
0 commit comments