2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-11 13:11:01 +00:00

For #5382: Fix cron jobs which were not scheduled anymore

This commit is contained in:
Johan Lorenzo 2019-10-11 14:49:16 +02:00 committed by Sebastian Kaspari
parent 58ed86dac0
commit f5bf2f5690

View File

@ -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}'