diff --git a/.github/workflows/news-file.yml b/.github/workflows/news-file.yml index 398ad1b7e67..f452fcb0a52 100644 --- a/.github/workflows/news-file.yml +++ b/.github/workflows/news-file.yml @@ -17,7 +17,9 @@ jobs: fetch-depth: 0 - name: Check news entry - if: "!contains(github.event.pull_request.labels.*.name, 'skip news')" + if: | + !contains(github.event.pull_request.labels.*.name, 'skip news') || + github.actor != 'pre-commit-ci[bot]' run: | if ! pipx run towncrier check --compare-with origin/${{ github.base_ref }}; then echo "Please see https://pip.pypa.io/dev/news-entry-failure for guidance." diff --git a/news/12605.trivial.rst b/news/12605.trivial.rst new file mode 100644 index 00000000000..d4257990f57 --- /dev/null +++ b/news/12605.trivial.rst @@ -0,0 +1 @@ +skip news check if ``github.actor`` is ``pre-commit-ci[bot]``