Browse Source

fix: release check output is not a string (#4782)

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
Gergely Brautigam 11 months ago
parent
commit
f90ce3be86
1 changed files with 3 additions and 3 deletions
  1. 3 3
      .github/workflows/helm.yml

+ 3 - 3
.github/workflows/helm.yml

@@ -92,14 +92,14 @@ jobs:
           if [ $release_status -eq 200 ]; then
           if [ $release_status -eq 200 ]; then
             echo "Release already exists"
             echo "Release already exists"
             echo "release_exists='true'">> $GITHUB_OUTPUT
             echo "release_exists='true'">> $GITHUB_OUTPUT
-          else 
+          else
             echo "Release does not exist"
             echo "Release does not exist"
             echo "release_exists='false'" >> $GITHUB_OUTPUT
             echo "release_exists='false'" >> $GITHUB_OUTPUT
           fi
           fi
   release:
   release:
     needs:
     needs:
       - check-release
       - check-release
-    if: needs.check-release.outputs.release_exists == 'false' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-'))
+    if: ! needs.check-release.outputs.release_exists && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-'))
     permissions:
     permissions:
       contents: write  # for helm/chart-releaser-action to push chart release and create a release
       contents: write  # for helm/chart-releaser-action to push chart release and create a release
       packages: write  # to push OCI chart package to GitHub Registry
       packages: write  # to push OCI chart package to GitHub Registry
@@ -153,7 +153,7 @@ jobs:
         uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
         uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
         with:
         with:
           version: v3.14.2 # remember to also update for the first job (lint-and-test)
           version: v3.14.2 # remember to also update for the first job (lint-and-test)
-          
+
       - name: Login to GHCR
       - name: Login to GHCR
         uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
         uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
         with:
         with: