Filter the workflow and YAML linters event triggers by paths (#17816)
This commit is contained in:
4
.github/workflows/workflow-lint.yml
vendored
4
.github/workflows/workflow-lint.yml
vendored
@@ -5,7 +5,11 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '.github/workflows/*.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/*.yml'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
||||
6
.github/workflows/yml-lint.yml
vendored
6
.github/workflows/yml-lint.yml
vendored
@@ -5,7 +5,13 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**/*.yml'
|
||||
- '**/*.yaml'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**/*.yml'
|
||||
- '**/*.yaml'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
||||
Reference in New Issue
Block a user