From a2c3c5f23a0e317dca3ea67af8806c4bb49393db Mon Sep 17 00:00:00 2001 From: Oscar Date: Mon, 13 Nov 2023 14:35:28 +0800 Subject: [PATCH] fix(github): chart version (#112) --- .github/workflows/update-value.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update-value.yml b/.github/workflows/update-value.yml index f84eca77..235b5557 100644 --- a/.github/workflows/update-value.yml +++ b/.github/workflows/update-value.yml @@ -35,17 +35,13 @@ jobs: export poster="${{ fromJson(github.event.inputs.version).poster }}" export cronjob="${{ fromJson(github.event.inputs.version).cronjob }}" export date=$(date +%y%m%d) + version="$(cat charts/agh2/Chart.yaml | grep -e '^version:' | awk '{print $2}')" + sed -i "s/$version/$(semver bump patch $version)/g" .github/workflows/Chart.yaml.template envsubst < .github/workflows/values.template > "charts/agh2/values.yaml" envsubst < .github/workflows/Chart.yaml.template > "charts/agh2/Chart.yaml" cat charts/agh2/values.yaml cat charts/agh2/Chart.yaml - - name: update chart version - working-directory: charts/agh2 - run: | - version="$(cat Chart.yaml | grep -e '^version:' | awk '{print $2}')" - sed -i "s/$version/$(semver bump patch $version)/g" Chart.yaml - - name: Create PR uses: peter-evans/create-pull-request@v4 with: