From b8c3b68141b93f9d1f5a790f5f5cc70bd590c1db Mon Sep 17 00:00:00 2001 From: Zubeen Date: Tue, 3 Oct 2023 01:47:55 +0530 Subject: [PATCH] Update release_notes.yml (#5949) Ignoring release notes check for PRs of type doc/ci/test --- .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 6e6e4cb9e..fd54da5d9 100644 --- a/.github/workflows/release_notes.yml +++ b/.github/workflows/release_notes.yml @@ -35,5 +35,10 @@ jobs: - name: Check release notes if: steps.changed-files.outputs.any_changed == 'false' && !contains( github.event.pull_request.labels.*.name, 'ignore-for-release-notes') run: | + # Check if any of the commit messages contain tags ci/docs/test + if git log --pretty=%s origin/main..HEAD | grep -E '^(ci:|docs:|test:)' > /dev/null; then + echo "Skipping release note check for commits with 'ci:', 'docs:', or 'test:' tags." + else 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