Skip to content

Commit

Permalink
fix(sls): fix branch ref
Browse files Browse the repository at this point in the history
  • Loading branch information
wyvern8 committed Jul 12, 2018
1 parent c85147c commit 6a57bf2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/executors/ExecutorDockerServerless.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ export class ExecutorDockerServerless extends ExecutorDocker {
return super.executeTask(task);
}
pushBranchName() {
let refParts = this.eventData.ref ? this.eventData.ref.split('/') : [];
let branchName = refParts.length > 0 ? refParts[refParts.length - 1].replace(/[^A-Za-z0-9\-+_]/g, '-') : null;
this.log.info(`pushBranchName: ${branchName}`);
return branchName;
let ref = this.eventData.ref;
this.log.info(`pushBranchName: ${ref}`);
return ref;
}

identifyChangedPackages() {
Expand Down

0 comments on commit 6a57bf2

Please sign in to comment.