Skip to content

Commit 12bd9be

Browse files
committed
Update lint workflows to only run on pull request
1 parent af9845c commit 12bd9be

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

.github/workflows/actionlint.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
name: GitHub Actions Lint
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
paths:
8-
- '.github/workflows/**/*.yaml'
9-
- '.github/workflows/**/*.yml'
104
pull_request:
11-
paths:
12-
- '.github/workflows/**/*.yaml'
13-
- '.github/workflows/**/*.yml'
145

156
jobs:
167
actionlint:
@@ -23,4 +14,4 @@ jobs:
2314
fail_level: any
2415
filter_mode: nofilter
2516
github_token: ${{ secrets.GITHUB_TOKEN }}
26-
reporter: github-check
17+
reporter: github-pr-check

.github/workflows/yamllint.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
name: YAML Lint
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
paths:
8-
- '**.yaml'
9-
- '**.yml'
104
pull_request:
11-
paths:
12-
- '**.yaml'
13-
- '**.yml'
145

156
jobs:
167
yaml_lint:
@@ -23,4 +14,4 @@ jobs:
2314
fail_level: any
2415
filter_mode: nofilter
2516
github_token: ${{ secrets.GITHUB_TOKEN }}
26-
reporter: github-check
17+
reporter: github-pr-check

0 commit comments

Comments
 (0)