'use strict';

const branch = process.env.BRANCH_NAME;

if(!branch) {
    console.error(`Environmental variable 'BRANCH_NAME' not set`);
    process.exit(3);
}

console.log(`branch = ${branch}`);

'use strict';

const branch = process.env.BRANCH;

if(!branch) {
    console.error(`Environmental variable 'BRANCH' not set`);
    process.exit(3);
}

console.log(`branch = ${branch}`);

fix bug, ENVAR name is branch