Order GitLab CI keywords

MSAL

Order the keywords in .gitlab-ci.yml consistently. Global keywords come first, in the order include, stages, variables, workflow and default, followed by the jobs in their original order. Within default and each job, keywords follow the order in which they take effect: inheritance, scheduling, execution environment, scripts and finally outputs such as artifacts. Unrecognized keys keep their relative order after the recognized ones. A mapping is left unchanged when reordering would place a YAML alias before its anchor.

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

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