[fenix] For https://github.com/mozilla-mobile/fenix/issues/5382: Fix cron jobs which were not scheduled anymore

pull/600/head
Johan Lorenzo 5 years ago committed by Sebastian Kaspari
parent ba15c2cea2
commit ecfb19ad4d

@ -14,21 +14,22 @@ tasks:
$let: $let:
# Github events have this stuff in different places... # Github events have this stuff in different places...
ownerEmail: ownerEmail:
$if: 'event.sender.login == "bors[bot]"' $if: 'tasks_for in ["cron", "action"]'
then: 'skaspari+mozlando@mozilla.com' # It must match what's in bors.toml then: '${tasks_for}@noreply.mozilla.org'
else: else:
$if: 'tasks_for == "github-push"' $if: 'event.sender.login == "bors[bot]"'
then: '${event.pusher.email}' then: 'skaspari+mozlando@mozilla.com' # It must match what's in bors.toml
# Assume Pull Request
else: else:
$if: 'tasks_for == "github-pull-request"' $if: 'tasks_for == "github-push"'
then: '${event.pull_request.user.login}@users.noreply.github.com' then: '${event.pusher.email}'
# Assume Pull Request
else: else:
$if: 'tasks_for == "github-release"' $if: 'tasks_for == "github-pull-request"'
then: '${event.sender.login}@users.noreply.github.com' then: '${event.pull_request.user.login}@users.noreply.github.com'
else: else:
$if: 'tasks_for in ["cron", "action"]' $if: 'tasks_for == "github-release"'
then: '${tasks_for}@noreply.mozilla.org' then: '${event.sender.login}@users.noreply.github.com'
baseRepoUrl: baseRepoUrl:
$if: 'tasks_for in ["github-push", "github-release"]' $if: 'tasks_for in ["github-push", "github-release"]'
then: '${event.repository.html_url}' then: '${event.repository.html_url}'

Loading…
Cancel
Save