I have a project with following circle.yml configurations for deployment:
deployment: staging: branch: develop commands: - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow" - git push firstname.lastname@example.org:cassanova-fo-fe-staging.git $CIRCLE_SHA1:refs/heads/master
Everything works ok, except that if I would like to change the branch that I want on the staging environment (ad an example if I change “develop” with “xxx”) the build of the new branch (“xxx”) doesn’t execute the deployment commands. Builds of the old branch (“develop”) correctly stop to execute deployment commands.