Skip to content

Commit 800d17e

Browse files
committed
[github-workflow] dont fallback to helm-version inside chart
1 parent ab183b5 commit 800d17e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/helm-oci-package-ghcr.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
APP_VERSION=$(git describe --tags --exact-match ${{ github.sha }} 2>/dev/null || echo "")
3838
if [ -n "$APP_VERSION" ]; then
3939
VERSION=$(echo -n "$APP_VERSION" | sed -E 's/^v//')
40+
else
41+
VERSION=$((git describe --tags --abbrev=0 2>/dev/null | sed -E 's/^v//') || echo "")
4042
fi
4143
4244
# use the git sha as app-version, if no version could be detected from the tags

0 commit comments

Comments
 (0)