Skip to content

Commit

Permalink
restrict wf paths
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelnikolov committed Jul 25, 2024
1 parent 33569b3 commit 1a8f36e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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
8 changes: 7 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ on:
push:
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

0 comments on commit 1a8f36e

Please sign in to comment.