Skip to content

Commit

Permalink
chore(actions): add path-ignore for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shipengqi committed May 8, 2024
1 parent 539c2b8 commit a8b50ff
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@ name: "codeql"
on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
- 'README.md'
- '.goreleaser.yaml'
pull_request:
branches: [ main ]
paths-ignore:
- 'docs/**'
- 'README.md'
- '.goreleaser.yaml'
jobs:
analyze:
name: analyze
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/gitleaks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ on:
push:
branches: ['main']
tags: ['v*']
paths-ignore:
- 'docs/**'
- 'README.md'
- '.goreleaser.yaml'
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- '.goreleaser.yaml'
permissions:
contents: read
jobs:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/grype.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ on:
push:
branches: ['main']
tags: ['v*']
paths-ignore:
- 'docs/**'
- 'README.md'
- '.goreleaser.yaml'
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- '.goreleaser.yaml'
jobs:
scan-source:
name: scan-source
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ on:
- v*
branches:
- main
paths-ignore:
- 'docs/**'
- 'README.md'
- '.goreleaser.yaml'
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- '.goreleaser.yaml'
permissions:
contents: read

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ name: test
on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
- 'README.md'
- '.goreleaser.yaml'
pull_request:
branches: [ main ]

paths-ignore:
- 'docs/**'
- 'README.md'
- '.goreleaser.yaml'
jobs:
unit-test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit a8b50ff

Please sign in to comment.