Skip to content

Commit 6513c4e

Browse files
authored
Merge pull request #349 from redhatrises/release
feat: only run release if label is applied to PR
2 parents 11982e7 + 32c87b5 commit 6513c4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/helm-release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
name: Release Helm Charts
22

33
on:
4-
push:
4+
pull_request:
5+
types: [closed]
56
branches:
67
- main
78
paths:
89
- 'helm-charts/**'
910

1011
jobs:
1112
release:
13+
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
1214
runs-on: ubuntu-latest
1315
steps:
1416
- name: Checkout

0 commit comments

Comments
 (0)