diff --git a/.github/workflows/helm.yaml b/.github/workflows/helm.yaml index 642c0d3..e4287cf 100644 --- a/.github/workflows/helm.yaml +++ b/.github/workflows/helm.yaml @@ -50,6 +50,7 @@ jobs: run: | wget -nv -nc -O yq https://github.com/mikefarah/yq/releases/download/v4.20.2/yq_linux_amd64 chmod +x yq + echo "$PWD" >> $GITHUB_PATH - name: create release rules run: build/chart-release-rules.sh - uses: cycjimmy/semantic-release-action@v4 diff --git a/build/chart-prerelease.sh b/build/chart-prerelease.sh index 2e03afc..357ef22 100755 --- a/build/chart-prerelease.sh +++ b/build/chart-prerelease.sh @@ -3,6 +3,6 @@ export appVersion=$(git describe --match 'v*' --abbrev=0 HEAD --tags || echo "0.0.0") export chartVersion=$(echo $1 | sed 's/chart-\(.*\)/\1/') -./yq -i e '.version = strenv(chartVersion)' chart/Chart.yaml -./yq -i e '.appVersion = strenv(appVersion)"' chart/Chart.yaml -./yq -i e '.on.workflow_dispatch.inputs.chart_version.default = strenv(chartVersion)' .github/workflows/deploy.yaml +yq -i e '.version = strenv(chartVersion)' chart/Chart.yaml +yq -i e '.appVersion = strenv(appVersion)"' chart/Chart.yaml +yq -i e '.on.workflow_dispatch.inputs.chart_version.default = strenv(chartVersion)' .github/workflows/deploy.yaml diff --git a/chart/package.json b/chart/package.json index 0fd3702..fe2ed79 100644 --- a/chart/package.json +++ b/chart/package.json @@ -1,4 +1,3 @@ { "name": "chart" } -