Commit 1b35075 1 parent e5dc191 commit 1b35075 Copy full SHA for 1b35075
File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 16
16
issues : read
17
17
checks : write
18
18
pull-requests : write
19
- if : |
20
- github.event.workflow_run.event == "pull_request" &&
21
- github.event.workflow_run.conclusion != 'skipped'
19
+ if : github.event.workflow_run.conclusion != 'skipped'
22
20
23
21
steps :
24
22
- name : Download test results
29
27
30
28
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
31
29
32
- gh api "$artifacts_url" -q '.artifacts[] | select(.name=="tests") | [.name, .archive_download_url] | @tsv' | while read artifact
33
- do
30
+ gh api "$artifacts_url" -q '.artifacts[] | select(.name=="tests" or .name=="EventFile" ) | [.name, .archive_download_url] | @tsv' | \
31
+ while read artifact; do
34
32
IFS=$'\t' read name url <<< "$artifact"
35
33
gh api $url > "$name.zip"
36
34
unzip -d "$name" "$name.zip"
40
38
uses : EnricoMi/publish-unit-test-result-action@v2
41
39
with :
42
40
commit : ${{ github.event.workflow_run.head_sha }}
43
- event_file : artifacts/Event File /event.json
41
+ event_file : artifacts/EventFile /event.json
44
42
report_individual_runs : true
45
43
event_name : ${{ github.event.workflow_run.event }}
46
44
junit_files : " artifacts/**/*.junit"
You can’t perform that action at this time.
0 commit comments