Skip to content

Commit

Permalink
Address failing step if release is new
Browse files Browse the repository at this point in the history
  • Loading branch information
rvermeulen committed Nov 16, 2023
1 parent e71d5b9 commit 59032d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
# Don't fail the step if gh fails to find the release
set +e
release=$(gh release view v$RELEASE_VERSION --json name,isDraft)
if [[ -z "$release" ]]; then
echo "Release v$RELEASE_VERSION does not exist. Proceeding"
Expand Down

0 comments on commit 59032d2

Please sign in to comment.