Skip to content

Commit 440936e

Browse files
authored
Merge pull request #22 from Randsw/develop
fix(gh-action): Release can be done only on push to main
2 parents f8aec2b + 44d6a9c commit 440936e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/helm-chart-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ jobs:
6060
run: |
6161
git config user.name "$GITHUB_ACTOR"
6262
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
63-
if: steps.changed-files-helm-chart.outputs.any_changed == 'true' && github.event.pull_request.merged == true
63+
if: steps.changed-files-helm-chart.outputs.any_changed == 'true' && github.ref == 'refs/heads/main'
6464

6565
- name: Run chart-releaser
6666
uses: helm/chart-releaser-action@v1.5.0
6767
with:
6868
charts_dir: helm-chart
6969
env:
7070
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
71-
if: steps.changed-files-helm-chart.outputs.any_changed == 'true' && github.event.pull_request.merged == true
71+
if: steps.changed-files-helm-chart.outputs.any_changed == 'true' && github.ref == 'refs/heads/main'
7272

0 commit comments

Comments
 (0)