Migrate only/except to rules

MSAL

Replace the deprecated only and except keywords with equivalent rules in .gitlab-ci.yml job definitions. When both only and except are present, they are combined into a single rules block. Handles ref lists and the object form with refs, variables, changes and kubernetes, matching named refs as branches.

org.openrewrite.gitlab.MigrateToRules
mod run . --recipe=org.openrewrite.gitlab.MigrateToRules

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.