Skip to content

Commit 2c33e88

Browse files
committed
fix(helm-chart-bump): change semver bump version for helm chart version bump.
1 parent daa6658 commit 2c33e88

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/update-docker-compose-stable.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,15 @@ jobs:
9595
yq -e -i '.appVersion = strenv(PEERDB_VERSION)' peerdb-catalog/Chart.yaml
9696
yq -e -i '.peerdb.version = strenv(STABLE_PEERDB_VERSION)' peerdb/values.yaml
9797
git diff --exit-code || echo "changes=true" >> "$GITHUB_OUTPUT"
98-
- name: Get next version
99-
if: ${{ steps.update-peerdb-version.outputs.changes == 'true' }}
100-
uses: reecetech/version-increment@a29aa752dc3b8118a2dc2ed93faf0e95a73a9c7e # 2024.10.1
98+
- name: Repo SemVer
99+
uses: lhstrh/action-repo-semver@23839f38b149db8715f21dbd38e6dde122817222
101100
id: version
102-
with:
103-
scheme: semver
104-
increment: patch
105101
- name: Update Chart version
106102
if: ${{ steps.update-peerdb-version.outputs.changes == 'true' }}
107103
run: |
108104
set -eo pipefail
109-
yq -e -i '.version = "${{ steps.version.outputs.version }}"' peerdb/Chart.yaml
110-
yq -e -i '.version = "${{ steps.version.outputs.version }}"' peerdb-catalog/Chart.yaml
105+
yq -e -i '.version = "${{ steps.version.outputs.next-patch }}"' peerdb/Chart.yaml
106+
yq -e -i '.version = "${{ steps.version.outputs.next-patch }}"' peerdb-catalog/Chart.yaml
111107
- name: Update helm-docs for both charts
112108
if: ${{ steps.update-peerdb-version.outputs.changes == 'true' }}
113109
run: |
@@ -126,7 +122,7 @@ jobs:
126122
if [ "$PR_ID" == "" ]; then
127123
PR_ID=$(gh pr create -l "$PR_LABEL" -t "$PR_TITLE" --body "")
128124
fi
129-
echo 'This PR updates the PeerDB release version to `${{ env.PEERDB_VERSION }}` and the chart version to `${{ steps.version.outputs.version }}`.' > pr_body.txt
125+
echo 'This PR updates the PeerDB release version to `${{ env.PEERDB_VERSION }}` and the chart version to `${{ steps.version.outputs.next-patch }}`.' > pr_body.txt
130126
echo 'Please review and merge it to update the charts.' >> pr_body.txt
131127
gh pr edit "$PR_ID" --body "$(cat pr_body.txt)"
132128
gh pr merge "$PR_ID" --squash --auto

0 commit comments

Comments
 (0)