2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

[fenix] Bug 1608153 - Do not trigger a new build on every single action that occurs on a PR (https://github.com/mozilla-mobile/fenix/pull/8046)

This commit is contained in:
Johan Lorenzo 2020-03-03 14:33:48 +01:00 committed by GitHub
parent 719b5418d2
commit ec34421dcb

View File

@ -89,14 +89,20 @@ tasks:
else: else:
$if: 'tasks_for in ["cron", "action"]' $if: 'tasks_for in ["cron", "action"]'
then: '${ownTaskId}' then: '${ownTaskId}'
pullRequestAction:
$if: 'tasks_for == "github-pull-request"'
then: ${event.action}
else: 'UNDEFINED'
releaseAction: releaseAction:
$if: 'tasks_for == "github-release"' $if: 'tasks_for == "github-release"'
then: ${event.action} then: ${event.action}
else: 'UNDEFINED' else: 'UNDEFINED'
in: in:
$if: 'tasks_for in ["github-pull-request", "action", "cron"] $if: >
|| (tasks_for == "github-push" && head_branch[:10] != "refs/tags/") tasks_for in ["action", "cron"]
|| (tasks_for == "github-release" && releaseAction == "published")' || (tasks_for == "github-pull-request" && pullRequestAction in ["opened", "reopened", "edited", "synchronize"])
|| (tasks_for == "github-push" && head_branch[:10] != "refs/tags/")
|| (tasks_for == "github-release" && releaseAction == "published")
then: then:
$let: $let:
level: level: