Skip to content

Commit cbce17e

Browse files
committed
ci(release): amend helm chart app version update
1 parent 0762061 commit cbce17e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,17 @@ jobs:
5353
git config user.name "github-actions[bot]"
5454
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
5555
56-
npx bumpp ${{ env[inputs.version] }} -y -r --commit "chore(release): v%s"
56+
npx bumpp ${{ env[inputs.version] }} -y -r --commit "chore(release): v%s" --no-push
5757
58-
echo "RELEASE_REF=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
59-
60-
- name: ⬆️ Bump Helm chart app version
61-
run: |
62-
VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//') sed -E "s/^appVersion:.+$/appVersion: '$VERSION'/" -i install/kubernetes/github-actions-cache-server/Chart.yaml
58+
export VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//')
59+
sed -E "s/^appVersion:.+$/appVersion: '$VERSION'/" -i install/kubernetes/github-actions-cache-server/Chart.yaml
6360
git stage install/kubernetes/github-actions-cache-server/Chart.yaml
64-
git commit -nm "chore(release): update helm chart appVersion to $VERSION"
61+
git commit -n --no-edit --amend
62+
git tag -f "v$VERSION"
63+
64+
git push origin dev
65+
66+
echo "RELEASE_REF=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
6567
6668
- name: 📥 Create release PR
6769
id: create-release-pr

0 commit comments

Comments
 (0)