Upgrade gitlab-ci only parameters to rules
The gitlab-ci documentation of the only parameter mentions the following note:
Note: The
rules
syntax is now the preferred method of setting job policies.only
andexcept
are candidates for deprecation, and may be removed in the future.
The only
parameter based on branch name isn't practical as it requires creating a new MR if the author has forgotten it.
We could use a rule based on the changes, the commit message/title/etc.