Skip to content

Commit

Permalink
fix tc.yml for pr-action
Browse files Browse the repository at this point in the history
  • Loading branch information
jcristau committed Feb 8, 2024
1 parent 354b8ba commit 3b690ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ tasks:
$switch:
'tasks_for == "cron"': low
'tasks_for == "github-push"|| isPullRequest': very-low
$default: lowest # tasks_for == 'action'
$default: lowest # tasks_for in ['action', 'pr-action']
retries: 5

payload:
Expand Down Expand Up @@ -215,7 +215,7 @@ tasks:
- $if: 'isPullRequest'
then:
${normProjectUpper}_PULL_REQUEST_NUMBER: '${event.pull_request.number}'
- $if: 'tasks_for == "action"'
- $if: 'tasks_for in ["action", "pr-action"]'
then:
ACTION_TASK_GROUP_ID: '${action.taskGroupId}' # taskGroupId of the target task
ACTION_TASK_ID: {$json: {$eval: 'taskId'}} # taskId of the target task (JSON-encoded)
Expand All @@ -240,7 +240,7 @@ tasks:
- $let:
extraArgs: {$if: 'tasks_for == "cron"', then: '${cron.quoted_args}', else: ''}
in:
$if: 'tasks_for == "action"'
$if: 'tasks_for in ["action", "pr-action"]'
then: >
cd /builds/worker/checkouts/src &&
ln -s /builds/worker/artifacts artifacts &&
Expand Down Expand Up @@ -296,7 +296,7 @@ tasks:
else:
groupSymbol: cron
symbol: "${cron.job_symbol}"
- $if: 'tasks_for == "action"'
- $if: 'tasks_for in ["action", "pr-action"]'
then:
parent: '${action.taskGroupId}'
action:
Expand Down

0 comments on commit 3b690ab

Please sign in to comment.