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`.

(cherry picked from commit 1aeaa61bcf)
This commit is contained in:
Barrett Ruth authored and github-actions[bot] committed 2026-04-25 22:15:48 +00:00
1 parent 26678ebbd8
commit 53d34ba719
1 file changed
+7 -1
+7 -1
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: