Since GitLab is deprecating the use of
only/except in CI configs, I’ve been making changes to my
except: - master
rules: - if: '$CI_COMMIT_REF_NAME == "master"' when: never - when: always
only: - master
rules: - if: '$CI_COMMIT_REF_NAME == "master"' when: always - when: never
So far, the correct jobs seem to run in the MRs I’ve tried, but MR pipelines are now marked as
detached whereas they weren’t previously. I’m not sure whether that is to be expected, or whether there’s a bug in my config somewhere. The deprecation notice don’t seem to mention this, although I did find an explanation of detached.