ci: fix backwords compat check for default branch
In !101 (merged) we fixed the jobs for merge request pipelines but didn't fix it for the default branch.
Create a new bash script that is smart enough to check which SHA to use depending on which context it is being executed at.
closes #32 (closed)