Merge branch 'sh-fix-pipelines-not-being-created' into 'master'
Fix pipelines not always being created after a push
Closes #66196
See merge request gitlab-org/gitlab-ce!31927
(cherry picked from commit c7d12e60)
b46b9d5e Fix pipelines not always being created after a push