fix error in CI when applying code reformatting
Pushing the new commit to the source branch failed since we are in detached state and git could not resolve the reference properly.
Pushing the new commit to the source branch failed since we are in detached state and git could not resolve the reference properly.