Skip to content

Commit

Permalink
CI: use gh env var to detect if running on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
macno committed Oct 8, 2023
1 parent 4c441fd commit 3c0cb92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/version
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ if [ "${DEBUG}" = "true" ]; then
set -x
fi

if [ "$GITHUB_REF_TYPE" = "tag" ] && [ -n "$GITHUB_REF_NAME" ]; then
echo "$GITHUB_REF_NAME"
exit
fi

exact_match=$(git describe --exact-match --dirty 2>/dev/null)
retval=$?
if [ $retval -gt 0 ]; then
Expand Down

0 comments on commit 3c0cb92

Please sign in to comment.