31
31
required : false
32
32
type : string
33
33
ignore_test_status :
34
- description : " If true, ignore test success or failure, never set the commit status, and always upload screenshots."
34
+ description : " If true, ignore test success or failure, and always upload screenshots."
35
35
required : false
36
36
type : boolean
37
+ skip_commit_status :
38
+ description : " If true, skip the commit status."
39
+ required : false
40
+ type : boolean
41
+ job_name_prefix :
42
+ description : " A prefix added to the job name when setting commit status. Use when skip_commit_status is false."
43
+ required : false
44
+ type : string
37
45
schedule :
38
46
# Runs every night at 2am PST / 10am UTC, testing against the main branch.
39
47
- cron : ' 0 10 * * *'
@@ -138,10 +146,11 @@ jobs:
138
146
ref : ${{ needs.compute-ref.outputs.REF }}
139
147
140
148
- name : Set commit status to pending
141
- if : ${{ inputs.ignore_test_status == false }}
149
+ if : ${{ inputs.skip_test_status == false }}
142
150
uses : ./.github/workflows/custom-actions/set-commit-status
143
151
with :
144
152
context : Selenium / Build
153
+ job_name : " ${{ inputs.job_name_prefix }}Pre-build Player"
145
154
state : pending
146
155
token : ${{ secrets.GITHUB_TOKEN }}
147
156
@@ -182,10 +191,11 @@ jobs:
182
191
- name : Report final commit status
183
192
# Will run on success or failure, but not if the workflow is cancelled
184
193
# or if we were asked to ignore the test status.
185
- if : ${{ (success() || failure()) && inputs.ignore_test_status == false }}
194
+ if : ${{ (success() || failure()) && inputs.skip_commit_status == false }}
186
195
uses : ./.github/workflows/custom-actions/set-commit-status
187
196
with :
188
197
context : Selenium / Build
198
+ job_name : " ${{ inputs.job_name_prefix }}Pre-build Player"
189
199
state : ${{ job.status }}
190
200
token : ${{ secrets.GITHUB_TOKEN }}
191
201
@@ -206,10 +216,11 @@ jobs:
206
216
ref : ${{ needs.compute-ref.outputs.REF }}
207
217
208
218
- name : Set commit status to pending
209
- if : ${{ inputs.ignore_test_status == false }}
219
+ if : ${{ inputs.skip_commit_status == false }}
210
220
uses : ./.github/workflows/custom-actions/set-commit-status
211
221
with :
212
222
context : Selenium / ${{ matrix.browser }}
223
+ job_name : " ${{ inputs.job_name_prefix }}${{ matrix.browser }}"
213
224
state : pending
214
225
token : ${{ secrets.GITHUB_TOKEN }}
215
226
@@ -362,9 +373,10 @@ jobs:
362
373
- name : Report final commit status
363
374
# Will run on success or failure, but not if the workflow is cancelled
364
375
# or if we were asked to ignore the test status.
365
- if : ${{ (success() || failure()) && inputs.ignore_test_status == false }}
376
+ if : ${{ (success() || failure()) && inputs.skip_commit_status == false }}
366
377
uses : ./.github/workflows/custom-actions/set-commit-status
367
378
with :
368
379
context : Selenium / ${{ matrix.browser }}
380
+ job_name : " ${{ inputs.job_name_prefix }}${{ matrix.browser }}"
369
381
state : ${{ job.status }}
370
382
token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments