Added a release task check to ensure the branch is master.