diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 70c3257..a2f70bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,7 +63,7 @@ jobs: - name: Check release tag id: release-tag run: | - CURRENT_TAG=$(git describe --tag --always) + CURRENT_TAG=$(git describe --tag --always --match="v[0-9]*") if git show-ref --tags ${CURRENT_TAG} --quiet; then echo "tag ${CURRENT_TAG} already exists"; diff --git a/scripts/build b/scripts/build index 7b61f48..6f31835 100755 --- a/scripts/build +++ b/scripts/build @@ -2,7 +2,7 @@ set -e pipefail -TAG=$(git describe --tag --always) +TAG=$(git describe --tag --always --match="v[0-9]*") if [ -n "$(git status --porcelain --untracked-files=no)" ]; then TAG="${TAG}-dirty"