1
- # Copied from https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.18 /README.md#support-fork-repositories-and-dependabot-branches
1
+ # Copied from https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.23 /README.md#support-fork-repositories-and-dependabot-branches
2
2
3
3
name : Publish test results
4
4
12
12
publish-test-results :
13
13
name : Publish test results
14
14
runs-on : ubuntu-latest
15
- if : >
16
- github.event.workflow_run.conclusion != 'skipped' && (
17
- github.event.sender.login == 'dependabot[bot]' ||
18
- github.event.workflow_run.head_repository.full_name != github.repository
19
- )
15
+ if : github.event.workflow_run.conclusion != 'skipped'
20
16
21
17
steps :
22
18
- name : Download and extract artifacts
@@ -26,13 +22,10 @@ jobs:
26
22
mkdir artifacts && cd artifacts
27
23
28
24
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
29
- artifacts=$(gh api $artifacts_url -q '.artifacts[] | {name: .name, url: .archive_download_url}')
30
25
31
- IFS=$'\n'
32
- for artifact in $artifacts
26
+ gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
33
27
do
34
- name=$(jq -r .name <<<$artifact)
35
- url=$(jq -r .url <<<$artifact)
28
+ IFS=$'\t' read name url <<< "$artifact"
36
29
gh api $url > "$name.zip"
37
30
unzip -d "$name" "$name.zip"
38
31
done
41
34
uses : EnricoMi/publish-unit-test-result-action@v1
42
35
with :
43
36
commit : ${{ github.event.workflow_run.head_sha }}
37
+ event_file : artifacts/Event File/event.json
38
+ event_name : ${{ github.event.workflow_run.event }}
44
39
files : " artifacts/**/*.xml"
0 commit comments