diff --git a/.github/workflows/helm-publish.yaml b/.github/workflows/helm-publish.yaml index c07f0e6..f09b5af 100644 --- a/.github/workflows/helm-publish.yaml +++ b/.github/workflows/helm-publish.yaml @@ -21,10 +21,9 @@ jobs: - name: Get current version from bumpversion id: get-version run: | - version=$(sed -nE 's/.*current_version = (.*)/\1/p' < .bumpversion.cfg) if ! [[ "$GITHUB_REF" =~ ^refs/tags/.* ]]; then bump2version --allow-dirty --no-tag --no-commit patch - version="${version}-SNAPSHOT" + version="$(sed -nE 's/.*current_version = (.*)/\1/p' < .bumpversion.cfg)-SNAPSHOT" fi echo "version=$version" >> $GITHUB_OUTPUT shell: bash