From ef91493ddab5dee2c1e68403152d1c66b6c0e09d Mon Sep 17 00:00:00 2001 From: Jack Betteridge Date: Thu, 7 Nov 2024 17:05:01 +0000 Subject: [PATCH] Drop v from tag when versioning --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef07262..d6a8335 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,8 @@ jobs: TAG_NAME=${GITHUB_REF#refs/tags/} NEW_VERSION=$(echo $TAG_NAME | awk -F'-' '{print $1}') SUFFIX=$(echo $TAG_NAME | grep -oP '([a-u,w-z]|dev)+[0-9]+' || echo "") - echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT" + echo "TAG_NAME=$TAG_NAME" + echo "new_version=${NEW_VERSION:1}" >> "$GITHUB_OUTPUT" echo "suffix=$SUFFIX" >> "$GITHUB_OUTPUT" echo "tag_name=$TAG_NAME" >> "$GITHUB_OUTPUT" echo "Version is $NEW_VERSION"