Skip to content

Commit 70d66ba

Browse files
Update index.js
1 parent 235d25a commit 70d66ba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ try {
2121
return;
2222
}
2323

24+
2425
let ref = github.context.ref;
25-
let branch = res.replace(/^refs\/(heads|tags)\//, '');
26+
let branch = ref.replace(/^refs\/(heads|tags)\//, '');
2627

2728
let username = github.context.actor;
2829
let repo = github.context.repo.repo;

0 commit comments

Comments
 (0)