Skip to content

Commit

Permalink
Display GITHUB_REF on error
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Apr 12, 2021
1 parent 1f96ab4 commit 9d6ec0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [[ -z "${GITHUB_TOKEN:-}" ]]; then
fi

if [[ "${GITHUB_REF:?}" != "refs/tags/"* ]]; then
error "GITHUB_REF should start with 'refs/tags/'"
error "GITHUB_REF should start with 'refs/tags/': ${GITHUB_REF}"
exit 1
fi
tag="${GITHUB_REF#refs/tags/}"
Expand Down

0 comments on commit 9d6ec0d

Please sign in to comment.