Skip to content

Commit

Permalink
fix(standalone): use qa build for chrome stage env
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Aug 23, 2021
1 parent 6f1bced commit cbfd7c8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/config-utils/standalone/helpers/checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ function checkoutRepo({ repo, reposDir, overwrite }) {
fs.mkdirSync(reposDir);
}

const [remote, branch = 'master'] = repo.split('#');
let [remote, branch = 'master'] = repo.split('#');
/**
* Chrome does not have stage and stage beta branches.
* For stage env, the QA build is used.
* This is actually quite common for applications as well, we should definetly check other application as well and maybe apply this rule for every remote.
*/
if(remote.includes('insights-chrome-build') && branch.includes('stage-')) {
branch = branch.replace('stage-', 'qa-')
}

const split = remote.split('/');
const toDir = split[split.length - 1];
const repoPath = path.join(reposDir, toDir);
Expand Down

0 comments on commit cbfd7c8

Please sign in to comment.