Skip to content

Commit

Permalink
fix: add snapshot suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
DerTiedemann committed Jun 28, 2024
1 parent 351c37d commit 72d7404
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/helm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72d7404

Please sign in to comment.