ci: skip running on docs-only changes
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Nov 2022 14:00:53 +0000 (15:00 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 Nov 2022 10:27:35 +0000 (11:27 +0100)
commit976ceafe1b260ac435b27682d43c7a3e4feb5427
tree8035dd9522e44a5ea0e8d90db131d1f9fe488f77
parentafd8e1d94527cf663a8dc013f2190a90218666bd
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.
.github/workflows/mkosi.yml