Helm chart - CI - Fix using malformed output parameter syntax, make appVersion substitution apply in place

Signed-off-by: Rhea Danzey <rdanzey@element.io>
This commit is contained in:
Rhea Danzey 2023-06-08 12:49:30 -05:00
parent 113cf5b49e
commit 5a277d47e2
No known key found for this signature in database
GPG Key ID: BC69166FB2668680

View File

@ -33,13 +33,13 @@ jobs:
- name: "Get app version from package.json"
id: get_hookshot_version
run: |
echo "::set-output hookshot_version=$(cat package.json | yq .version)" >> "$GITHUB_OUTPUT"
echo "hookshot_version=$(cat package.json | yq .version)" >> "$GITHUB_OUTPUT"
- name: Set chart appVersion to current package.json version
uses: mikefarah/yq@v4.34.1
with:
cmd: |
yq '.appVersion="${{steps.get_hookshot_version.outputs.hookshot_version}}"' helm/hookshot/Chart.yaml
yq -i '.appVersion="${{steps.get_hookshot_version.outputs.hookshot_version}}"' helm/hookshot/Chart.yaml
- name: Set values hookshot config to current config.sample.yml contents
uses: mikefarah/yq@v4.34.1