Skip to content

Commit fca736b

Browse files
authored
Filter the workflow and YAML linters event triggers by paths (#17816)
1 parent fc4dec9 commit fca736b

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/workflow-lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- '.github/workflows/*.yml'
810
pull_request:
11+
paths:
12+
- '.github/workflows/*.yml'
913

1014
jobs:
1115
lint:

.github/workflows/yml-lint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- '**/*.yml'
10+
- '**/*.yaml'
811
pull_request:
12+
paths:
13+
- '**/*.yml'
14+
- '**/*.yaml'
915

1016
jobs:
1117
lint:

0 commit comments

Comments
 (0)