[Release Automation] Fixed and simplified some of the git stuff in the Release task