Skip to content

Commit

Permalink
#0: Add ternary operator to get empty string if release run is not an…
Browse files Browse the repository at this point in the history
… rc run otherwise it'll pass false as a string

(cherry picked from commit cd6f3f8f18d9f8f2d2b472c9e0667e33114caafb)
  • Loading branch information
tt-rkim committed Jan 25, 2024
1 parent a9642da commit 544d38e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/package-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 544d38e

Please sign in to comment.