1
0
Fork 0

Filter github release events for "publishes" (#5719)

master
Mitchell Hentges 2019-10-08 14:16:00 -07:00 committed by Sawyer Blatz
parent 07721d4a5e
commit 47f952a2a2
1 changed files with 5 additions and 1 deletions

View File

@ -83,8 +83,12 @@ tasks:
else:
$if: 'tasks_for == "cron"'
then: '${ownTaskId}'
releaseAction:
$if: 'tasks_for == "github-release"'
then: ${event.action}
else: 'UNDEFINED'
in:
$if: 'tasks_for in ["github-pull-request", "github-release", "action", "cron"] || tasks_for == "github-push" && head_branch[:10] != "refs/tags/"'
$if: 'tasks_for in ["github-pull-request", "action", "cron"] || (tasks_for == "github-push" && head_branch[:10] != "refs/tags/") || (tasks_for == "github-release" && releaseAction == "published")'
then:
$let:
level: