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 b12b059 commit bbc566c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/helm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,24 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up bump2version
run: |
pipx install bump2version
shell: bash

- 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"
fi
echo "version=$version" >> $GITHUB_OUTPUT
shell: bash

call-workflow-passing-data:
publish:
name: Publish Helm chart
uses: bakdata/ci-templates/.github/workflows/[email protected]
needs: get-version
Expand Down

0 comments on commit bbc566c

Please sign in to comment.