diff --git a/.taskcluster.yml b/.taskcluster.yml index 863b23c12ce..6233554fd84 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -82,7 +82,10 @@ tasks: else: ${event.ref} else: $if: 'tasks_for in ["cron", "action"]' - then: '${push.branch}' + then: + $if: '${push.branch}[:11] == "refs/heads/"' + then: {$eval: 'push.branch[11:]'} + else: '${push.branch}' base_sha: $if: 'tasks_for == "github-push"' then: '${event.before}'