Pipeline fails on a non main branch.
As happens on !1 (merged) the pipeline fails on a non main branch. The CI variable is now available.
The CI variable should only be used on main branch. And therefore also the push should only run on main branch.