Browse Source

fix: helm release should run only on main

Moritz Johner 5 years ago
parent
commit
c8c15c0b90
1 changed files with 1 additions and 0 deletions
  1. 1 0
      .github/workflows/helm.yml

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

@@ -79,6 +79,7 @@ jobs:
 
 
       - name: Run chart-releaser
       - name: Run chart-releaser
         uses: helm/chart-releaser-action@v1.2.0
         uses: helm/chart-releaser-action@v1.2.0
+        if: github.ref == 'refs/heads/main'
         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 }}"