Skip to content

Commit

Permalink
fix: version (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
prsnca committed May 21, 2024
1 parent 82d6860 commit 866de43
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,18 @@ jobs:
with:
fallback: v1.22.1

- name: Get version
id: get-version
run: |
tag=${{ steps.get-tag.outputs.tag }}
echo "version=${tag#*-}" >> $GITHUB_OUTPUT
- name: Set Helm chart version from tag
uses: mikefarah/yq@master
with:
cmd: |
yq e -i '.version = "${{ steps.get-tag.outputs.tag }}"' ./helm/runtime-sensor/Chart.yaml
yq e -i '.sensor.image.tag = "${{ steps.get-tag.outputs.tag }}"' ./helm/runtime-sensor/values.yaml
yq e -i '.version = "${{ steps.get-version.outputs.version }}"' ./helm/runtime-sensor/Chart.yaml
yq e -i '.sensor.image.tag = "${{ steps.get-version.outputs.version }}"' ./helm/runtime-sensor/values.yaml
- name: Configure Git
run: |
Expand Down

0 comments on commit 866de43

Please sign in to comment.