Skip to content

Commit db7bd65

Browse files
authored
Prevent release workflow on unmerged PRs
#52
2 parents a530c39 + d0745c5 commit db7bd65

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
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:

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
All changes that impact users of this module are documented in this file, in the [Common Changelog](https://common-changelog.org) format with some additional specifications defined in the CONTRIBUTING file. This codebase adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5-
## Unreleased
5+
## Unreleased [no-release]
6+
7+
_Modifications made in this changeset do not add, remove or alter any behavior, dependency, API or functionality of the software. They only change non-functional parts of the repository, such as the README file or CI workflows._
68

79
## 2.0.2 - 2024-06-12
810

0 commit comments

Comments
 (0)