We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1caf028 commit 4dd6fbbCopy full SHA for 4dd6fbb
1 file changed
.github/workflows/changelog-validator.yml
@@ -18,3 +18,14 @@ jobs:
18
with:
19
validation_level: error
20
path: docs/changelog.md
21
+ - name: Validate Latest Version is a Release
22
+ id: validate_release_version
23
+ if: ${{ contains(github.event.pull_request.labels.*.name, 'release') && steps.changelog_reader.outputs.status != 'unreleased' }}
24
+ run: echo "This PR is labeled as a release and the latest version in Changleog is ${{ steps.changelog_reader.outputs.version }}."
25
+ - name: Validate Latest Version is not a Release
26
+ id: validate_not_release_version
27
+ if: ${{ contains(github.event.pull_request.labels.*.name, 'release') && steps.changelog_reader.outputs.status == 'unreleased' }}
28
+ run: |
29
+ echo "This PR is labeled as a release but the latest version in Changleog has status 'unreleased'."
30
+ exit 1
31
+
0 commit comments