Fix issue with jobs not running with protected templates
There was a bug in the previous implementation due to always using the unprotected template to run jobs even on protected branches.
issue
WARNING! Gitlab maintenance operation scheduled for Thursday, 18 June between 19:00 and 20:00 (CET). During this time window, short service interruptions (less than 5 minutes) may occur. Thank you in advance for your understanding.