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