Skip to content

Commit

Permalink
[ci] Include only expected events and actions in taskcluster.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Oct 10, 2023
1 parent 63fd8ff commit daf8aaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand Down Expand Up @@ -128,3 +131,4 @@ tasks:
description: Schedule CI tasks for ${project_name}
owner: [email protected]
source: https://github.com/MozillaSecurity/grizzly
else: []

0 comments on commit daf8aaa

Please sign in to comment.