Skip to content

Commit

Permalink
Only run workflows on certain changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xerbalind committed Aug 22, 2024
1 parent 05b0dfc commit 2bcecd8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ on:
push:
branches:
- main
paths:
- .github/workflows/cargo.yml
- '**/*.rs'
pull_request:
paths:
- .github/workflows/cargo.yml
- '**/*.rs'
workflow_dispatch:

env:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- main
paths:
- '**/*.rs'
- Dockerfile
- Cargo.lock

concurrency:
group: docker-main
Expand Down

0 comments on commit 2bcecd8

Please sign in to comment.