only run CI on pushes to main, not to topic branches

This commit is contained in:
Dustin J. Mitchell 2020-12-30 01:02:00 +00:00
parent 21684666a6
commit 705edce82b

View file

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