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:
$let:
run:
$if: 'tasks_for == "github-push" && event["ref"] == "refs/heads/main"'
then: true
$if: 'tasks_for == "github-push"'
then: {$eval: 'event.ref == "refs/heads/main"'}
else: {$eval: 'event.action in ["opened", "reopened", "synchronize"]'}
repo_url:
$if: 'tasks_for == "github-push"'