From df48806ce175d469823ee57d86c291da778e0ee0 Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Fri, 4 Oct 2024 17:32:30 -0400 Subject: [PATCH] ci: Don't require `skip-news` if NEWS.rst changes Until now we've been requiring every PR affect a file in the news/ directory or be labeled with `skip-news`. Also allow a PR to directly touch NEWS.rst instead. Signed-off-by: Matt Wozniski --- .github/workflows/news-check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/news-check.yml b/.github/workflows/news-check.yml index be9ebebf21..55490f536f 100644 --- a/.github/workflows/news-check.yml +++ b/.github/workflows/news-check.yml @@ -18,6 +18,8 @@ jobs: - name: "Check for news entry" uses: brettcannon/check-for-changed-files@v1 with: - file-pattern: "news/*.rst" + file-pattern: | + news/*.rst + NEWS.rst skip-label: "skip news" failure-message: "Missing a news file in ${file-pattern}; please add one or apply the ${skip-label} label to the pull request"