From 819ddc3cb1ccf9e954356895b55b11f3ad3d0a31 Mon Sep 17 00:00:00 2001 From: Marlon Saglia Date: Fri, 30 Aug 2024 14:33:12 +0200 Subject: [PATCH] feat(ci): update publish-cli.yml to handle tag versions Modify the publish-cli.yml workflow to correctly extract the version from the git tag, removing the leading "v" prefix. This ensures the correct version is used for the published artifact. --- .github/workflows/publish-cli.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-cli.yml b/.github/workflows/publish-cli.yml index 3487e203aa1a..631d7fe65ae2 100644 --- a/.github/workflows/publish-cli.yml +++ b/.github/workflows/publish-cli.yml @@ -29,7 +29,8 @@ jobs: id: meta run: | if [[ "${{ github.event_name }}" == "push" && "${{ startswith(github.ref, 'refs/tags/v') }}" == "true" ]]; then - BUILD_VERSION="${{ github.ref_name }}" + # Remove the "v" prefix from the tag. + BUILD_VERSION="${GIT_REF_NAME#v}" else BUILD_VERSION="0.0.0-dev_${{ github.run_number }}" fi