Skip to content

Commit

Permalink
Replace sed to set version with much simpler method
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeschuurmans committed Jul 9, 2024
1 parent 4cfb9f7 commit 206f1dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ jobs:
-
name: Package Helm Chart
run: |
sed -i -e '1 s/version: v[0-9]*\.[0-9]*\.[0-9]*/version: ${{ github.ref_name }}/; t' -e '1,// s//version: ${{ github.ref_name }}/' ./${{ env.CHART_NAME }}/chart/Chart.yaml
helm package ./${{ env.CHART_NAME }}/chart -u -d ./helm-charts/
helm package --version ${{ github.ref_name }} ./${{ env.CHART_NAME }}/chart -u -d ./helm-charts/
helm repo index ./helm-charts/ --url https://metal-toolbox.github.io/${{ env.CHART_NAME }}/
-
name: Create Git Commit
Expand Down

0 comments on commit 206f1dd

Please sign in to comment.