Explorar o código

fix: run helm release on release branch as well

Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
Moritz Johner %!s(int64=3) %!d(string=hai) anos
pai
achega
04343c15bf
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      .github/workflows/helm.yml

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

@@ -86,7 +86,9 @@ jobs:
           make helm.generate
       - name: Run chart-releaser
         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:
           CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
           CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"