Skip to content

Commit

Permalink
Drop v from tag when versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Nov 7, 2024
1 parent 49ba98f commit ef91493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ef91493

Please sign in to comment.