[CI] Fix broken pipeline auto-cancel
Description
This MR fixes new commits on a merge request not correctly cancelling previous pipelines.
Checklist
-
Documentation reflects the changes made. -
Merge Request title is clear, concise, and suitable as a changelog entry. See this link
References
Closes #1229 (closed)
Edited by Niels Alexander Buegel