From 314a6396d3f546af9f3e3bfc7524588c603a443d Mon Sep 17 00:00:00 2001 From: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> Date: Wed, 4 Sep 2024 17:37:32 +0200 Subject: [PATCH] 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 --- .github/workflows/release_notes.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release_notes.yml b/.github/workflows/release_notes.yml index 8fff69c525..5203c0837c 100644 --- a/.github/workflows/release_notes.yml +++ b/.github/workflows/release_notes.yml @@ -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 }}