From daf8aaa76aac1b147aafd2ecb2c6e1c82f144542 Mon Sep 17 00:00:00 2001 From: Tyson Smith Date: Tue, 10 Oct 2023 09:52:29 -0700 Subject: [PATCH] [ci] Include only expected events and actions in taskcluster.yml --- .taskcluster.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.taskcluster.yml b/.taskcluster.yml index 08799390..19f35f29 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -94,7 +94,10 @@ tasks: key: password in: - $if: 'tasks_for in ["github-push", "github-release"] || (tasks_for == "github-pull-request" && event["action"] in ["opened", "reopened", "synchronize"])' + $if: > + (tasks_for == "github-push") + || (tasks_for == "github-pull-request" && event["action"] in ["opened", "reopened", "synchronize"]) + || (tasks_for == "github-release" && event["action"] in ["published"]) then: - created: {$fromNow: ''} deadline: {$fromNow: '1 hour'} @@ -128,3 +131,4 @@ tasks: description: Schedule CI tasks for ${project_name} owner: twsmith@mozilla.com source: https://github.com/MozillaSecurity/grizzly + else: []