mirror of
https://github.com/neovim/neovim.git
synced 2026-10-25 23:20:23 -05: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`.
(cherry picked from commit 1aeaa61bcf)
This commit is contained in:
1 parent
26678ebbd8
commit
53d34ba719
1 file changed
+7
-1
@@ -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