Run docs jobs only on docs changes
Description
At the moment the CI pipeline runs the docs jobs for every pipeline, even when there is not change in the documentation. We also have a special convention on branch naming so they only the docs jobs run when we only update the docs. This has drawbacks such as always have to remember about the branch name, new contributors aren't aware of such convention and end up using a lot of CI resources.
Proposal
Do something similar to what gitlab-org/gitlab
has done, using changes
so everything is handled automatically.
Todos
-
Migrate scanner to rules: !2728 (comment 507922778) -
Rename rule: !2728 (comment 509398342) -
Add spacing: !2728 (comment 509398352)
Links to related issues and merge requests / references
- Adding convention back to docs: gitlab!21013 (merged)