From a0f85be444c960f34db3bf0df27aef9705d32030 Mon Sep 17 00:00:00 2001 From: Mario Macias Date: Thu, 2 May 2024 10:44:19 +0200 Subject: [PATCH] fix helm-release chart path (#797) --- .github/workflows/helm-release.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index 84b7c8983..746240fbe 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -9,13 +9,11 @@ env: CR_PACKAGE_PATH: "${{ github.workspace }}/.cr-release-packages" CR_TOOL_PATH: "${{ github.workspace }}/.cr-tool" CR_VERSION: "1.5.0" + CHART_DIR: "${{ github.workspace }}/charts/beyla" jobs: setup: runs-on: ubuntu-latest - outputs: - changed: ${{ steps.list-changed.outputs.changed }} - chartpath: ${{ steps.list-changed.outputs.chartpath }} steps: - name: Checkout uses: actions/checkout@v4 @@ -23,9 +21,6 @@ jobs: fetch-depth: 0 path: source - - name: Install chart-testing - uses: helm/chart-testing-action@v2 - release: needs: [setup] runs-on: ubuntu-latest @@ -65,12 +60,12 @@ jobs: id: parse-chart run: | cd source - changed="${{ needs.setup.outputs.chartpath }}" - description=$(yq ".description" < ${changed}/Chart.yaml) - name=$(yq ".name" < ${changed}/Chart.yaml) - version=$(yq ".version" < ${changed}/Chart.yaml) + charpath="${{ env.CHART_DIR }}" + description=$(yq ".description" < ${{ env.CHART_DIR }}/Chart.yaml) + name=$(yq ".name" < ${{ env.CHART_DIR }}/Chart.yaml) + version=$(yq ".version" < ${{ env.CHART_DIR }}/Chart.yaml) - echo "chartpath=${changed}" >> $GITHUB_OUTPUT + echo "chartpath=${charpath}" >> $GITHUB_OUTPUT echo "desc=${description}" >> $GITHUB_OUTPUT echo "tagname=v${version}" >> $GITHUB_OUTPUT echo "packagename=${name}-${version}" >> $GITHUB_OUTPUT