Skip to content

Commit

Permalink
CI: use path exclusions to filter
Browse files Browse the repository at this point in the history
This was not running CI when only template files were modified, which is
undesirable.
Instead of trying to include all the things we do want to run CI for,
use path exclusions to filter out the things we don't want to run CI
for.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
  • Loading branch information
cpuguy83 committed Nov 7, 2024
1 parent 9825bbe commit 4b0fa43
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,22 @@ on:
pull_request:
branches:
- main
paths:
- "*.go"
- "**/*.go"
- Dockerfile
- docker-bake.hcl
- .github/workflows/ci.yml
- frontend/mariner2/Dockerfile
- "test/fixtures/*"
- go.mod
- go.sum
paths-ignore:
- 'website/**'
- 'docs/**'
- '*.md'
- 'CODEOWNERS'
- 'LICENSE'

push:
branches:
- main
paths:
- "*.go"
- "**/*.go"
- Dockerfile
- docker-bake.hcl
- .github/workflows/ci.yml
- frontend/mariner2/Dockerfile
- go.mod
- go.sum
paths-ignore:
- 'website/**'
- 'docs/**'
- '*.md'
- 'CODEOWNERS'
- 'LICENSE'

permissions:
contents: read
Expand Down

0 comments on commit 4b0fa43

Please sign in to comment.