Skip to content

Commit

Permalink
helm: fix version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol authored May 16, 2024
1 parent 0e0a222 commit fd97404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/helm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Update Chart AppVersion
env:
ACTION_TRIGGER: ${{github.event_name}}
if: github.event_name == 'workflow_call'
run: |
CHART_PATH="charts/sogo/Chart.yaml"
Expand All @@ -52,12 +51,7 @@ jobs:
MINOR=${VERSION_PARTS[1]}
PATCH=${VERSION_PARTS[2]}
if [ "$ACTION_TRIGGER" = "workflow_dispatch" ]; then
# Increment the version
PATCH=$((PATCH + 1))
else
MINOR=$((MINOR + 1))
fi
MINOR=$((MINOR + 1))
# Form the new version
NEW_VERSION="$MAJOR.$MINOR.$PATCH"
Expand Down
2 changes: 1 addition & 1 deletion charts/sogo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: sogo
version: 0.1.0
version: 0.1.1
description: A helm chart for the docker-sogo docker image
type: application
keywords:
Expand Down

0 comments on commit fd97404

Please sign in to comment.