Pushing an empty branch breaks build artifacts naming

How to (hopefully) reproduce:

  1. Have build artifacts enabled with $CI_COMMIT_REF_NAME in its name
  2. Have a master branch with build artifacts enabled
  3. Commit to master and see build artifacts name
  4. Create new branch
  5. Push that branch

Now there will be new build artifacts with the new branch name.
Within GitLab you can now browse to the master branch and see that those master branch artifacts now also have the name of the new branch in it.

I expect the master branch artifacts to not be affected by the new branch’s artifacts.

Kind regards