From 1aeaa61bcf9b5963cdb27c01d4d23a0d02ed411c Mon Sep 17 00:00:00 2001 From: Barrett Ruth <62671086+barrettruth@users.noreply.github.com> Date: Sat, 25 Apr 2026 13:47:33 -0400 Subject: [PATCH] ci(news): only rerun on ci:skip-news label changes #39399 Problem: The news workflow reruns on unrelated label events. Solution: Only reevaluate the job when the changed label is `ci:skip-news`. --- .github/workflows/news.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/news.yml b/.github/workflows/news.yml index f14be08651..4bcf87270c 100644 --- a/.github/workflows/news.yml +++ b/.github/workflows/news.yml @@ -11,7 +11,13 @@ permissions: jobs: check: runs-on: ubuntu-latest - if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci:skip-news') + if: >- + github.event.pull_request.draft == false && + !contains(github.event.pull_request.labels.*.name, 'ci:skip-news') && + ( + (github.event.action != 'labeled' && github.event.action != 'unlabeled') || + github.event.label.name == 'ci:skip-news' + ) steps: - uses: actions/checkout@v6 with: