Skip to content

Commit bdfc5f4

Browse files
committed
Fix actions/version output for tag_exists
1 parent 37a11d1 commit bdfc5f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/actions/version/entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ check_git_tag_exists() {
6868
default_branch="$INPUT_DEFAULT_BRANCH"; debug_log "default_branch=$default_branch"
6969
ref=$GITHUB_REF; debug_log "ref=$ref"
7070
semver="$INPUT_SEMVER"; debug_log "semver=$semver"
71-
exists=$(check_git_tag_exists "$semver"); debug_log "exists=$exists"
72-
releasable="$( [ "$ref" == "refs/heads/${default_branch}" ] && [ "$exists" == "false" ] && echo "true" || echo "false" )"
71+
tag_exists=$(check_git_tag_exists "$semver"); debug_log "tag_exists=$tag_exists"
72+
releasable="$( [ "$ref" == "refs/heads/${default_branch}" ] && [ "$tag_exists" == "false" ] && echo "true" || echo "false" )"
7373
debug_log "releasable=$releasable"
7474

7575
set_output "$semver" "semver"
7676
set_output "$(parse_semver_component "$semver" 1)" "major"
7777
set_output "$(parse_semver_component "$semver" 2)" "minor"
7878
set_output "$(parse_semver_component "$semver" 3)" "patch"
79-
set_output "$exists" "tag"
79+
set_output "$tag_exists" "tag-exists"
8080
set_output "$releasable" "releasable"
8181
log_output

0 commit comments

Comments
 (0)