mirror of
https://github.com/neovim/neovim.git
synced 2026-05-23 21:30:11 +00:00
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:
8
.github/workflows/news.yml
vendored
8
.github/workflows/news.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user