misc: don't run actions when we don't need to
This commit is contained in:
10
.github/workflows/cargo-fmt.yml
vendored
10
.github/workflows/cargo-fmt.yml
vendored
@@ -2,7 +2,17 @@ name: Cargo Format Check
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "src/**"
|
||||
- "Cargo.toml"
|
||||
- "Cargo.lock"
|
||||
- ".rustfmt.toml"
|
||||
pull_request:
|
||||
paths:
|
||||
- "src/**"
|
||||
- "Cargo.toml"
|
||||
- "Cargo.lock"
|
||||
- ".rustfmt.toml"
|
||||
|
||||
jobs:
|
||||
cargo-fmt:
|
||||
|
||||
Reference in New Issue
Block a user