changed BRANCH_NAME to BRANCH for env var that specifies branch