Skip to content

Commit 6a57bf2

Browse files
committed
fix(sls): fix branch ref
1 parent c85147c commit 6a57bf2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/executors/ExecutorDockerServerless.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ export class ExecutorDockerServerless extends ExecutorDocker {
4444
return super.executeTask(task);
4545
}
4646
pushBranchName() {
47-
let refParts = this.eventData.ref ? this.eventData.ref.split('/') : [];
48-
let branchName = refParts.length > 0 ? refParts[refParts.length - 1].replace(/[^A-Za-z0-9\-+_]/g, '-') : null;
49-
this.log.info(`pushBranchName: ${branchName}`);
50-
return branchName;
47+
let ref = this.eventData.ref;
48+
this.log.info(`pushBranchName: ${ref}`);
49+
return ref;
5150
}
5251

5352
identifyChangedPackages() {

0 commit comments

Comments
 (0)