Skip to content

Commit 91e067e

Browse files
committed
ci(release): use yq for settings helm chart app version
1 parent 9033756 commit 91e067e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
with:
4747
node-version: lts/*
4848

49+
- name: Install yq
50+
run: |
51+
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq
52+
chmod +x /usr/bin/yq
53+
4954
- name: ⬆️ Bump version
5055
if: github.event_name == 'workflow_dispatch'
5156
id: bump-version
@@ -54,7 +59,7 @@ jobs:
5459
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
5560
5661
VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//')
57-
sed -E "s/^appVersion:.+$/appVersion: '$VERSION'/" -i install/kubernetes/github-actions-cache-server/Chart.yaml
62+
yq e -i '.appVersion = env(VERSION)' install/kubernetes/github-actions-cache-server/Chart.yaml
5863
git stage install/kubernetes/github-actions-cache-server/Chart.yaml
5964
git commit -nm "chore(release): update helm chart appVersion to $VERSION"
6065

0 commit comments

Comments
 (0)