Skip to content

Commit 6e759d5

Browse files
author
Bastien Abadie
committed
Strip refs/heads/ from head branch
1 parent 6d825a1 commit 6e759d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.taskcluster.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ tasks:
88
then: ${event.pull_request.head.ref}
99
else:
1010
$if: 'tasks_for == "github-push"'
11-
then: ${event.ref}
11+
then:
12+
# Strip ref branch prefix
13+
$if: 'event.ref[0:11] == "refs/heads/"'
14+
then: ${event.ref[11:]}
15+
else: ${event.ref}
1216
else: ${event.release.target_commitish}
1317

1418
head_rev:

0 commit comments

Comments
 (0)