File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments