From e6c682248bc72bd6e4215cdcb8541886e54b400f Mon Sep 17 00:00:00 2001 From: secustor Date: Fri, 28 Feb 2025 19:26:06 +0100 Subject: [PATCH] ci(releaser): use changed_charts output so only these charts are pushed --- .github/workflows/release.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5777642..f776557 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,6 +31,7 @@ jobs: version: v3.17.1 - name: Run chart-releaser + id: releaser uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0 with: charts_dir: charts @@ -48,10 +49,7 @@ jobs: - name: Push charts to GHCR run: | - shopt -s nullglob - for pkg in .cr-release-packages/*.tgz; do - if [ -z "${pkg:-}" ]; then - break - fi - helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY}" - done \ No newline at end of file + IFS=',' read -ra CHARTS <<< "${{ steps.releaser.outputs.changed_charts }}" + for chart in "${CHARTS[@]}"; do + helm push "charts/${chart}" "oci://ghcr.io/${GITHUB_REPOSITORY}" + done