Skip to content

Commit

Permalink
Fix snapshot versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
yannick-roeder committed Jul 8, 2024
1 parent bbc566c commit 1ad1160
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/helm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ad1160

Please sign in to comment.