Browse Source

fix: helm release running always (#4898)

Signed-off-by: Gustavo Carvalho <gustavo@externalsecrets.com>
Co-authored-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
Gustavo Fernandes de Carvalho 11 months ago
parent
commit
955cc6944c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      .github/workflows/helm.yml

+ 1 - 0
.github/workflows/helm.yml

@@ -70,6 +70,7 @@ jobs:
         if: steps.list-changed.outputs.changed == 'true'
         run: make helm.test
   release:
+    if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-')
     permissions:
       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