mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
ci: skip running on docs-only changes
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-and-excluding-paths > If you define a path with the ! character, you must also define at least one > path without the ! character. If you only want to exclude paths, use > paths-ignore instead. > > The order that you define patterns matters: > A matching negative pattern (prefixed with !) after a positive match will > exclude the path. > A matching positive pattern after a negative match will include the path > again. Even if some of the exluded paths *could* impact the build, generally it's a waste of time to do mkosi builds on them. Let's skip to releave the builders a bit.
This commit is contained in:
parent
afd8e1d945
commit
976ceafe1b
27
.github/workflows/mkosi.yml
vendored
27
.github/workflows/mkosi.yml
vendored
|
@ -9,10 +9,37 @@ on:
|
|||
branches:
|
||||
- main
|
||||
- v[0-9]+-stable
|
||||
paths:
|
||||
- '**'
|
||||
- '!README*'
|
||||
- '!LICENSE*'
|
||||
- '!LICENSES/**'
|
||||
- '!TODO'
|
||||
- '!docs/**'
|
||||
- '!man/**'
|
||||
- '!catalog/**'
|
||||
- '!shell-completion/**'
|
||||
- '!po/**'
|
||||
- '!.**'
|
||||
- '.github/**'
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- v[0-9]+-stable
|
||||
paths:
|
||||
- '**'
|
||||
- '!README*'
|
||||
- '!LICENSE*'
|
||||
- '!LICENSES/**'
|
||||
- '!TODO'
|
||||
- '!docs/**'
|
||||
- '!man/**'
|
||||
- '!catalog/**'
|
||||
- '!shell-completion/**'
|
||||
- '!po/**'
|
||||
- '!.**'
|
||||
- '.github/**'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
Loading…
Reference in a new issue