Skip to content

Commit

Permalink
Update lint workflows to only run on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
javierjulio committed Dec 3, 2024
1 parent af9845c commit 12bd9be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
name: GitHub Actions Lint

on:
push:
branches:
- master
paths:
- '.github/workflows/**/*.yaml'
- '.github/workflows/**/*.yml'
pull_request:
paths:
- '.github/workflows/**/*.yaml'
- '.github/workflows/**/*.yml'

jobs:
actionlint:
Expand All @@ -23,4 +14,4 @@ jobs:
fail_level: any
filter_mode: nofilter
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
reporter: github-pr-check
11 changes: 1 addition & 10 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
name: YAML Lint

on:
push:
branches:
- master
paths:
- '**.yaml'
- '**.yml'
pull_request:
paths:
- '**.yaml'
- '**.yml'

jobs:
yaml_lint:
Expand All @@ -23,4 +14,4 @@ jobs:
fail_level: any
filter_mode: nofilter
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
reporter: github-pr-check

0 comments on commit 12bd9be

Please sign in to comment.