This is true for many modules, but especially true for ugit.
When on a detached branch, ugit will be less helpful, and changes generated from the execution would not be successful.
Therefore, if we are on a detached branch in the action, the action should write a warning and exit.