We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e1016 commit a63a992Copy full SHA for a63a992
template/{{cookiecutter.project_name}}/taskcluster.github.yml
@@ -12,7 +12,6 @@ policy:
12
tasks:
13
- $let:
14
trustDomain: "{{cookiecutter.trust_domain}}"
15
- level: "{{cookiecutter.level}}"
16
ownerEmail:
17
$switch:
18
'tasks_for == "github-push"': '${event.pusher.email}'
@@ -93,6 +92,10 @@ tasks:
93
92
'head_ref[:10] == "refs/tags/"': '${head_ref[10:]}'
94
'head_ref[:11] == "refs/heads/"': '${head_ref[11:]}'
95
$default: '${head_ref}'
+ level:
96
+ $if: 'isPullRequest || tasks_for == "pr-action"'
97
+ then: "1"
98
+ else: "{{cookiecutter.level}}"
99
in:
100
$if: >
101
tasks_for in ["action", "pr-action", "cron"]
0 commit comments