Skip to content

Commit 4dd6fbb

Browse files
committed
Better validate changelog
1 parent 1caf028 commit 4dd6fbb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/changelog-validator.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,14 @@ jobs:
1818
with:
1919
validation_level: error
2020
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

Comments
 (0)