Skip to content

Commit 915ff25

Browse files
committed
Prevent release workflow on unmerged PRs
1 parent a530c39 commit 915ff25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
changelog:
1111
uses: ./.github/workflows/changelog.yml
1212
release:
13-
if: needs.changelog.outputs.release-type != 'no-release'
13+
if: github.event.pull_request.merged == true && needs.changelog.outputs.release-type != 'no-release'
1414
needs: [ changelog ]
1515
runs-on: ubuntu-latest
1616
steps:
@@ -67,7 +67,7 @@ jobs:
6767
publish: true
6868

6969
clean_changelog:
70-
if: needs.changelog.outputs.release-type == 'no-release'
70+
if: github.event.pull_request.merged == true && needs.changelog.outputs.release-type == 'no-release'
7171
needs: [ changelog ]
7272
runs-on: ubuntu-latest
7373
steps:

0 commit comments

Comments
 (0)