latchset / clevis

Automated Encryption Framework
GNU General Public License v3.0
832 stars 99 forks source link

Github actions related to compilation or code correctness (build, DifferentialShellcheck) should not be executed on documentation changes #426

Closed sarroutbi closed 5 months ago

sarroutbi commented 1 year ago

It does not make sense to execute whole build process when only documentation is changed. An example: https://github.com/latchset/clevis/actions/runs/5042732499

I suggest build and Differential Shellcheck Github actions execution for changes that are not exclusive related to documentation, more in particular for Markdown documentation, as .adoc files should be compiled to check correctness. For this matter, paths-ignore in Github actions should be used:

When all the path names match patterns in paths-ignore, the workflow will not run.
If any path names do not match patterns in paths-ignore, even if some path names match the patterns,
the workflow will run.