nosqlbench/scripts/tag-preview-build
2023-01-23 21:18:53 -06:00

11 lines
271 B
Bash
Executable File

#!/bin/bash
cd mvn-defaults
set -x
CURRENT_VERSION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout)
RELEASE_VERSION=${CURRENT_VERSION%%-SNAPSHOT}
PREVIEW_TAG="${RELEASE_VERSION}-preview"
printf "preview tag: '%s'\n" "${PREVIEW_TAG}"
git tag "${PREVIEW_TAG}"