From ef0815c17428dce94de63e0e5380313d2e9a637a Mon Sep 17 00:00:00 2001 From: Aki Sasaki Date: Mon, 17 Oct 2022 15:23:09 -0600 Subject: [PATCH] base_ref bustage: extend the [11:] hack to action/cron (cherry picked from commit 6bd8e999946eca39d3925e41a8166da6ccdd6901) --- .taskcluster.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}'