Skip to content

Commit

Permalink
fix(serverless): fix logic issue in stage evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
wyvern8 committed Jul 6, 2018
1 parent 248d5c2 commit a42e928
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/executors/ExecutorDockerServerless.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ export class ExecutorDockerServerless extends ExecutorDocker {
return packages;
}
slsStage() {
let stage = process.env.GTM_SLS_EXECUTOR_AWS_STAGE || this.eventData.pushForPullRequest ? 'test' : 'dev';
let stage = this.eventData.pushForPullRequest ? 'test' : 'dev';
// allow global override
if (process.env.GTM_SLS_EXECUTOR_AWS_STAGE) {
stage = process.env.GTM_SLS_EXECUTOR_AWS_STAGE;
}
this.log.info(`stage: ${stage}`);
return stage;
}
Expand Down

0 comments on commit a42e928

Please sign in to comment.