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 1d70f36 commit d164c65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/helm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- name: Get current version from bumpversion
id: get-version
run: |
if ! [[ "$GITHUB_REF" =~ ^refs/tags/.* ]]; then
if [[ "$GITHUB_REF" =~ ^refs/tags/.* ]]; then
version="$(sed -nE 's/.*current_version = (.*)/\1/p' < .bumpversion.cfg)"
else
bump2version --allow-dirty --no-tag --no-commit patch
version="$(sed -nE 's/.*current_version = (.*)/\1/p' < .bumpversion.cfg)-SNAPSHOT"
else
version="$(sed -nE 's/.*current_version = (.*)/\1/p' < .bumpversion.cfg)"
fi
echo "version=$version" >> $GITHUB_OUTPUT
shell: bash
Expand Down

0 comments on commit d164c65

Please sign in to comment.