From d7d068ea9a87046f74101ac7b9fd5bfa1ffc8f8c Mon Sep 17 00:00:00 2001 From: Raymond Kim Date: Thu, 25 Jan 2024 11:15:36 -0500 Subject: [PATCH] #0: Add ternary operator to get empty string if release run is not an rc run otherwise it'll pass false as a string (cherry picked from commit cd6f3f8f18d9f8f2d2b472c9e0667e33114caafb) --- .github/workflows/package-and-release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package-and-release.yaml b/.github/workflows/package-and-release.yaml index 01dc950ea64..274615d95e2 100644 --- a/.github/workflows/package-and-release.yaml +++ b/.github/workflows/package-and-release.yaml @@ -32,8 +32,8 @@ jobs: id: get-should-create-release run: | # Run once to check for errors - ./scripts/build_scripts/get_should_create_release.sh ${{ fromJSON(steps.get-is-release-candidate.outputs.is-release-candidate) && '--release-candidate' }} - shouldCreateRelease=$(scripts/build_scripts/get_should_create_release.sh ${{ fromJSON(steps.get-is-release-candidate.outputs.is-release-candidate) && '--release-candidate' }}) + ./scripts/build_scripts/get_should_create_release.sh ${{ fromJSON(steps.get-is-release-candidate.outputs.is-release-candidate) && '--release-candidate' || '' }} + shouldCreateRelease=$(scripts/build_scripts/get_should_create_release.sh ${{ fromJSON(steps.get-is-release-candidate.outputs.is-release-candidate) && '--release-candidate' || '' }}) echo "should-create-release=$shouldCreateRelease" >> "$GITHUB_OUTPUT" create-tag: needs: get-params