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`.
This commit is contained in:
Barrett Ruth
2026-04-25 13:47:33 -04:00
committed by GitHub
parent c44df255aa
commit 1aeaa61bcf

View File

@@ -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: