Add step to verify release notes files are correctly formatted (#8323)

* Add step to verify release notes files are correctly formatted

* Fake release note

* Trigger file

* Fix step not running when it should

* Fix release notes error

* Remove trigger files
This commit is contained in:
Silvano Cerza 2024-09-04 17:37:32 +02:00 committed by GitHub
parent 1f3cb68d9f
commit 314a6396d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,3 +41,8 @@ jobs:
echo "::error::The release notes file is missing, please add one or attach the label 'ignore-for-release-notes' to this PR."
exit 1
fi
- name: Verify release notes formatting
if: steps.changed-files.outputs.any_changed == 'true' && !contains( github.event.pull_request.labels.*.name, 'ignore-for-release-notes')
run: |
yamllint -d "{extends: default, rules: {line-length: {max: 1200}}}" ${{ steps.changed-files.outputs.all_changed_files }}