Skip to content

Commit

Permalink
Use destination-tag for semver sign check (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzyinq authored Jun 18, 2024
1 parent 3b33916 commit f147575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion godtools/push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ runs:
exit 0
fi
TAG_NAME=${GITHUB_REF/refs\/tags\//}
TAG_NAME="${{ inputs.destination-tag }}"
SEMVER_REGEX="^v?(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-([0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*))?(\+([0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*))?$"
if [[ "$TAG_NAME" =~ $SEMVER_REGEX ]]; then
echo "::set-output name=should_sign::true"
Expand Down

0 comments on commit f147575

Please sign in to comment.