Skip to content

Commit

Permalink
Filter the workflow and YAML linters event triggers by paths (github#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMGreene authored Feb 11, 2021
1 parent fc4dec9 commit fca736b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/workflow-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ on:
push:
branches:
- main
paths:
- '.github/workflows/*.yml'
pull_request:
paths:
- '.github/workflows/*.yml'

jobs:
lint:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/yml-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ on:
push:
branches:
- main
paths:
- '**/*.yml'
- '**/*.yaml'
pull_request:
paths:
- '**/*.yml'
- '**/*.yaml'

jobs:
lint:
Expand Down

0 comments on commit fca736b

Please sign in to comment.