mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +00:00
ci: snap: add event filtering
Run the snap CI on every PR is not needed. Don't run the snap CI on PRs that don't change the source code (*.go/*.rs), a configuration file or Makefile. fixes #896 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
4f0fe8473b
commit
37e7de72a5
12
.github/workflows/snap.yaml
vendored
12
.github/workflows/snap.yaml
vendored
@ -1,5 +1,15 @@
|
|||||||
name: snap CI
|
name: snap CI
|
||||||
on: ["pull_request"]
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "**/Makefile"
|
||||||
|
- "**/*.go"
|
||||||
|
- "**/*.mk"
|
||||||
|
- "**/*.rs"
|
||||||
|
- "**/*.sh"
|
||||||
|
- "**/*.toml"
|
||||||
|
- "**/*.yaml"
|
||||||
|
- "**/*.yml"
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
Loading…
Reference in New Issue
Block a user