From be65f812e08426b9487a830c45d0f37294fe41f3 Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Wed, 25 Jan 2023 19:52:05 -0600 Subject: [PATCH] allow forcing preview tag update --- scripts/tag-preview-build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/tag-preview-build b/scripts/tag-preview-build index 5692892dc..1fc9316e3 100755 --- a/scripts/tag-preview-build +++ b/scripts/tag-preview-build @@ -6,5 +6,10 @@ RELEASE_VERSION=${CURRENT_VERSION%%-SNAPSHOT} PREVIEW_TAG="${RELEASE_VERSION}-preview" printf "preview tag: '%s'\n" "${PREVIEW_TAG}" -git tag "${PREVIEW_TAG}" +if [ "$1" == "-f" ] +then + git tag -f "${PREVIEW_TAG}" +else + git tag "${PREVIEW_TAG}" +fi