Skip to content

Commit 1b35075

Browse files
committed
Fix CoreValidation report workflow.
1 parent e5dc191 commit 1b35075

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/corevalidation-report.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ jobs:
1616
issues: read
1717
checks: write
1818
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'
2220

2321
steps:
2422
- name: Download test results
@@ -29,8 +27,8 @@ jobs:
2927
3028
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
3129
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
3432
IFS=$'\t' read name url <<< "$artifact"
3533
gh api $url > "$name.zip"
3634
unzip -d "$name" "$name.zip"
@@ -40,7 +38,7 @@ jobs:
4038
uses: EnricoMi/publish-unit-test-result-action@v2
4139
with:
4240
commit: ${{ github.event.workflow_run.head_sha }}
43-
event_file: artifacts/Event File/event.json
41+
event_file: artifacts/EventFile/event.json
4442
report_individual_runs: true
4543
event_name: ${{ github.event.workflow_run.event }}
4644
junit_files: "artifacts/**/*.junit"

0 commit comments

Comments
 (0)