From 72d740408f3dd7217f4909954cfa1b8f5f697b7a Mon Sep 17 00:00:00 2001 From: Jan Max Tiedemann Date: Fri, 28 Jun 2024 10:14:02 +0200 Subject: [PATCH] fix: add snapshot suffix --- .github/workflows/helm-publish.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/helm-publish.yaml b/.github/workflows/helm-publish.yaml index 7e290e5..aa752b5 100644 --- a/.github/workflows/helm-publish.yaml +++ b/.github/workflows/helm-publish.yaml @@ -16,6 +16,9 @@ jobs: id: get-version run: | version=$(cat .bumpversion.cfg | sed -nE 's/.*current_version = (.*)/\1/p') + if [[ "${GITHUB_REF#refs/heads/}" != "main" && "${GITHUB_REF#refs/heads/}" != "master" ]]; then + version="${version}-SNAPSHOT" + fi echo $version echo "version=$version" >> $GITHUB_OUTPUT shell: bash