From 59032d27a1b1b4c627bba12aff4fc536900ff539 Mon Sep 17 00:00:00 2001 From: Remco Vermeulen Date: Thu, 16 Nov 2023 13:30:03 -0800 Subject: [PATCH] Address failing step if release is new --- .github/workflows/prepare-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index e2b69149fc..50573cbaaf 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -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"