Skip to content

Commit

Permalink
Add step to verify release notes files are correctly formatted (#8323)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
silvanocerza authored Sep 4, 2024
1 parent 1f3cb68 commit 314a639
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release_notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 314a639

Please sign in to comment.