Skip to content

Commit

Permalink
Merge pull request #23 from linde12/master
Browse files Browse the repository at this point in the history
use jq -r to strip quotes
  • Loading branch information
rhysd committed Oct 4, 2023
2 parents bdb4b1a + 7bfe46b commit 158451a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git config --global --add safe.directory /github/workspace
cd "$GITHUB_WORKSPACE" || exit 1

if [ -z "$INPUT_VERSION" ]; then
TAG_FROM_PAYLOAD="$(jq .release.tag_name < "$GITHUB_EVENT_PATH")"
TAG_FROM_PAYLOAD="$(jq -r .release.tag_name < "$GITHUB_EVENT_PATH")"
if [ "$TAG_FROM_PAYLOAD" = "null" ]; then
git fetch --prune --depth=1 origin '+refs/tags/*:refs/tags/*'
INPUT_VERSION="$(git tag --list | tail -n 1)"
Expand Down

0 comments on commit 158451a

Please sign in to comment.