Skip to content

Commit ab5c7fb

Browse files
committed
fix issue where an extra character was cut after refs/tags/
Signed-off-by: JM Huibonhoa <jm.huibonhoa@solo.io>
1 parent 8de5b37 commit ab5c7fb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/tag.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
if [ -n "${{ github.event.inputs.version }}" ]; then
4848
export VERSION=${{ github.event.inputs.version }}
4949
else
50-
export VERSION=$(echo "$GITHUB_REF" | cut -c12-)
50+
export VERSION=$(echo "$GITHUB_REF" | cut -c11-)
5151
fi
5252
echo "Building Docker image with version: ${VERSION}"
5353
make docker-build VERSION=${VERSION}
@@ -75,7 +75,7 @@ jobs:
7575
if [ -n "${{ github.event.inputs.version }}" ]; then
7676
export VERSION=${{ github.event.inputs.version }}
7777
else
78-
export VERSION=$(echo "$GITHUB_REF" | cut -c12-)
78+
export VERSION=$(echo "$GITHUB_REF" | cut -c11-)
7979
fi
8080
echo "Publishing Helm chart with version: ${VERSION}"
8181
make helm-publish VERSION=${VERSION}
@@ -97,7 +97,7 @@ jobs:
9797
if [ -n "${{ github.event.inputs.version }}" ]; then
9898
export VERSION=${{ github.event.inputs.version }}
9999
else
100-
export VERSION=$(echo "$GITHUB_REF" | cut -c12-)
100+
export VERSION=$(echo "$GITHUB_REF" | cut -c11-)
101101
fi
102102
echo "Building release artifacts with version: ${VERSION}"
103103
make build-cli VERSION=${VERSION}

0 commit comments

Comments
 (0)