It looks like `$CI_DEFAULT_BRANCH` is not yet available on this version of Gitlab.
For some reason the git_ops job didn't run on my last push to `main` and this is the only thing I can think of that may have affected it.