From 595d6ca431298e2748422a3d5126a871d3eaf195 Mon Sep 17 00:00:00 2001 From: Johannes Thiem Date: Wed, 17 Apr 2024 15:27:54 +0200 Subject: [PATCH] fix: extract correct verson for tag --- .github/workflows/helm-build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/helm-build.yml b/.github/workflows/helm-build.yml index b90a160..f45e5e2 100644 --- a/.github/workflows/helm-build.yml +++ b/.github/workflows/helm-build.yml @@ -36,10 +36,16 @@ jobs: MTR: mtr.devops.telekom.de REPO: caas + - name: Extract Chart Version + id: chart_version + run: | + version=$(yq e '.version' ./chart/Chart.yaml) + echo "::set-output name=version::$version" + - name: Dispatch Event to Helm-Charts Repo uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} repository: caas-team/helm-charts event-type: new-helm-chart-version - client-payload: '{"tag": "${{ github.ref_name }}"}' + client-payload: '{"chart": "py-kube-downscaler", "version": "${{ steps.chart_version.outputs.version }}"}'