Skip to content

Commit

Permalink
Merge pull request #664 from bhearsum/taskcluster-branch-restriction
Browse files Browse the repository at this point in the history
ci: for pushes, only run taskcluster on main
  • Loading branch information
bhearsum authored Jul 12, 2024
2 parents 83e913c + 7c833f6 commit 675c3a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ policy:
tasks:
- $if: >
(tasks_for == "github-pull-request" && event.action in ["opened", "reopened", "synchronize"])
|| (tasks_for in ["github-push", "action", "cron"])
|| (tasks_for in ["action", "cron"])
|| (tasks_for == "github-push" && event.ref == "refs/heads/main")
then:
$let:
trustDomain: scriptworker
Expand Down

0 comments on commit 675c3a1

Please sign in to comment.