actions: skip some job using "paths-ignore" filter

If only docs/images are changed, some jobs should not run.

Fixes: #5759

Signed-off-by: Bin Liu <bin@hyper.sh>
This commit is contained in:
Bin Liu 2022-11-25 15:33:32 +08:00
parent f02bb1a9cb
commit 340e24f175
3 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,12 @@
name: Cargo Crates Check Runner name: Cargo Crates Check Runner
on: [pull_request] on:
- pull_request:
types:
- opened
- edited
- reopened
- synchronize
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.jpeg', '**.svg', '/docs/**' ]
jobs: jobs:
cargo-deny-runner: cargo-deny-runner:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -5,7 +5,7 @@ on:
- edited - edited
- reopened - reopened
- synchronize - synchronize
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.jpeg', '**.svg', '/docs/**' ]
name: Darwin tests name: Darwin tests
jobs: jobs:
test: test:

View File

@ -6,6 +6,7 @@ on:
- synchronize - synchronize
- reopened - reopened
- edited - edited
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.jpeg', '**.svg', '/docs/**' ]
jobs: jobs:
test: test: