Browse Source

fix: run helm release on release branch as well (#2444)

Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
Moritz Johner 2 years ago
parent
commit
8c2c727205
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .github/workflows/helm.yml

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

@@ -86,7 +86,9 @@ jobs:
           make helm.generate
           make helm.generate
       - name: Run chart-releaser
       - name: Run chart-releaser
         uses: helm/chart-releaser-action@v1.5.0
         uses: helm/chart-releaser-action@v1.5.0
-        if: github.ref == 'refs/heads/main'
+        if: |
+          github.ref == 'refs/heads/main' ||
+          startsWith(github.ref, 'refs/heads/release-')
         env:
         env:
           CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
           CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
           CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"
           CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"