@@ -14,13 +14,27 @@ defaults:
14
14
shell : pwsh
15
15
16
16
jobs :
17
+ trigger-info :
18
+ name : Trigger info
19
+ permissions :
20
+ contents : read
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - name : Dump github context for debug purposes
24
+ env :
25
+ GITHUB_CONTEXT : ${{ toJSON(github) }}
26
+ run : $env:GITHUB_CONTEXT
27
+ - name : Trigger info
28
+ run : |
29
+ Write-Output "::notice::This worklfow was triggered by a 'workflow_run' from '${{ github.event.workflow_run.name }}'."
30
+
17
31
only-errors-true :
18
32
name : only-errors set to true
19
33
permissions :
20
34
contents : read
21
35
runs-on : ubuntu-latest
22
36
steps :
23
- - name : Dump github co ntext for debug purposes
37
+ - name : Dump github context for debug purposes
24
38
env :
25
39
GITHUB_CONTEXT : ${{ toJSON(github) }}
26
40
run : $env:GITHUB_CONTEXT
@@ -121,7 +135,7 @@ jobs:
121
135
contents : read
122
136
runs-on : ubuntu-latest
123
137
steps :
124
- - name : Dump github co ntext for debug purposes
138
+ - name : Dump github context for debug purposes
125
139
env :
126
140
GITHUB_CONTEXT : ${{ toJSON(github) }}
127
141
run : $env:GITHUB_CONTEXT
@@ -222,7 +236,7 @@ jobs:
222
236
contents : read
223
237
runs-on : ubuntu-latest
224
238
steps :
225
- - name : Dump github co ntext for debug purposes
239
+ - name : Dump github context for debug purposes
226
240
env :
227
241
GITHUB_CONTEXT : ${{ toJSON(github) }}
228
242
run : $env:GITHUB_CONTEXT
@@ -284,7 +298,7 @@ jobs:
284
298
contents : read
285
299
runs-on : ubuntu-latest
286
300
steps :
287
- - name : Dump github co ntext for debug purposes
301
+ - name : Dump github context for debug purposes
288
302
env :
289
303
GITHUB_CONTEXT : ${{ toJSON(github) }}
290
304
run : $env:GITHUB_CONTEXT
@@ -313,7 +327,7 @@ jobs:
313
327
contents : read
314
328
runs-on : ubuntu-latest
315
329
steps :
316
- - name : Dump github co ntext for debug purposes
330
+ - name : Dump github context for debug purposes
317
331
env :
318
332
GITHUB_CONTEXT : ${{ toJSON(github) }}
319
333
run : $env:GITHUB_CONTEXT
@@ -353,7 +367,7 @@ jobs:
353
367
statuses : write
354
368
runs-on : ubuntu-latest
355
369
steps :
356
- - name : Dump github co ntext for debug purposes
370
+ - name : Dump github context for debug purposes
357
371
env :
358
372
GITHUB_CONTEXT : ${{ toJSON(github) }}
359
373
run : $env:GITHUB_CONTEXT
@@ -381,14 +395,13 @@ jobs:
381
395
$state = 'error'
382
396
}
383
397
384
-
385
398
$uri = "https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.event.workflow_run.head_sha }}"
386
399
$headers = @{
387
400
Accept = "application/vnd.github.v3+json"
388
401
Authorization = "Bearer ${{ secrets.GITHUB_TOKEN }}"
389
402
}
390
403
$body = @{
391
- context = '${{ github.workflow }} / ${{ github.event.workflow_run }} (${{ github.event_name }})' # mimic format from github
404
+ context = '${{ github.workflow }} / ${{ github.event.workflow_run.name }} (${{ github.event_name }})' # mimic format from github
392
405
description = $description
393
406
target_url = 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
394
407
state = $state
0 commit comments