From af6d74379929af265ddf14a166947fb244f0059e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=A0alata?= Date: Fri, 2 Apr 2021 23:50:22 +0200 Subject: [PATCH] Fix chart-releaser condition --- .github/workflows/release-chart.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index 679ac43..42a5038 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -4,8 +4,9 @@ on: push: branches: - main - paths: - - 'helm/**' +# TODO: add this back +# paths: +# - 'helm/**' jobs: release: @@ -27,10 +28,14 @@ jobs: version: v3.4.0 - name: Helm version checker - id: helm-version-checker + id: helm_version_checker continue-on-error: true run: | newVersion="$(helm show chart helm/imagepullsecret-injector | grep version: | awk '{print $2}')" + + helm repo add imagepullsecret-injector https://ysoftdevs.github.io/imagepullsecret-injector + helm repo update + uploadedVersions="$(helm search repo imagepullsecret-injector/imagepullsecret-injector -l | tail -n +2 | awk '{print $2}')" for uploadedVersion in $uploadedVersions; do if [ "$newVersion" == "$uploadedVersion" ]; then @@ -38,9 +43,8 @@ jobs: fi done - - name: Run chart-releaser - if: ${{ step.helm-version-checker.outcome == 'success' }} + if: steps.helm_version_checker.outcome == 'success' uses: helm/chart-releaser-action@master with: charts_dir: 'helm'