Skip to content

Commit

Permalink
restrict wf paths
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Nikolov <[email protected]>
  • Loading branch information
pavelnikolov committed Jul 25, 2024
1 parent 45500ad commit 461a95a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Create and publish a Docker image

on:
push:
branches: ['main']
branches:
- 'main'

env:
REGISTRY: ghcr.io
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@ name: Build

on:
push:
branches: [ "main" ]
branches:
- 'main'
pull_request:
branches: [ "main" ]
paths:
- 'src/**'
- 'tests/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/rust.yml'
- 'build.rs'

env:
CARGO_TERM_COLOR: always
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/terraform-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Terraform Plan"
on:
pull_request:
paths:
- 'terraform/**'
- './terraform/**'

env:
TF_WORKSPACE: "default"
Expand Down

0 comments on commit 461a95a

Please sign in to comment.