fix to tc.yml to only build on pushes to main

This commit is contained in:
Dustin J. Mitchell 2020-12-30 21:46:23 +00:00
parent d57efbec5d
commit b29f75a075

View file

@ -7,8 +7,8 @@ tasks:
then: then:
$let: $let:
run: run:
$if: 'tasks_for == "github-push" && event["ref"] == "refs/heads/main"' $if: 'tasks_for == "github-push"'
then: true then: {$eval: 'event.ref == "refs/heads/main"'}
else: {$eval: 'event.action in ["opened", "reopened", "synchronize"]'} else: {$eval: 'event.action in ["opened", "reopened", "synchronize"]'}
repo_url: repo_url:
$if: 'tasks_for == "github-push"' $if: 'tasks_for == "github-push"'