This PR makes sure we don't output GH tokens when the git command fails. The script does:
hides all git push output
if push is successful, it prints "Push to origin successful"
if push failed, it prints "Push to origin failed" and exits non-zero code
The issue we're solving however, is not happening anymore because latest version of release-tool doesn't output the errors anymore. This PR is another layer to hide the output in case release-tool is updated to show verbose logging.
This PR makes sure we don't output GH tokens when the git command fails. The script does:
The issue we're solving however, is not happening anymore because latest version of release-tool doesn't output the errors anymore. This PR is another layer to hide the output in case release-tool is updated to show verbose logging.