From 47f952a2a2141365081003b66bfa39ceb9e9cb98 Mon Sep 17 00:00:00 2001 From: Mitchell Hentges Date: Tue, 8 Oct 2019 14:16:00 -0700 Subject: [PATCH] Filter github release events for "publishes" (#5719) --- .taskcluster.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.taskcluster.yml b/.taskcluster.yml index 83d84a84b..20f453233 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -83,8 +83,12 @@ tasks: else: $if: 'tasks_for == "cron"' then: '${ownTaskId}' + releaseAction: + $if: 'tasks_for == "github-release"' + then: ${event.action} + else: 'UNDEFINED' in: - $if: 'tasks_for in ["github-pull-request", "github-release", "action", "cron"] || tasks_for == "github-push" && head_branch[:10] != "refs/tags/"' + $if: 'tasks_for in ["github-pull-request", "action", "cron"] || (tasks_for == "github-push" && head_branch[:10] != "refs/tags/") || (tasks_for == "github-release" && releaseAction == "published")' then: $let: level: