diff --git a/godtools/push/action.yaml b/godtools/push/action.yaml index 3219677..226db06 100644 --- a/godtools/push/action.yaml +++ b/godtools/push/action.yaml @@ -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"