Skip to content

Commit 1b2dedb

Browse files
authored
Fix CI Test Results workflow failing to find event.json (#2555)
dawidd6/action-download-artifact@v20 with name_is_regexp creates per-artifact subdirectories, so the event file lands at event/event-file-ubuntu-24.04/event.json rather than event/event.json. Download only the ubuntu-24.04 artifact by exact name and update the event_file path accordingly.
1 parent b09508b commit 1b2dedb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/ci-test-results.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,14 @@ jobs:
5050
uses: dawidd6/action-download-artifact@v20
5151
with:
5252
run_id: ${{ github.event.workflow_run.id }}
53-
name: event-file-.*
54-
name_is_regexp: true
53+
name: event-file-ubuntu-24.04
5554
path: event
5655

5756
- name: Publish Test Results
5857
uses: EnricoMi/publish-unit-test-result-action@v2
5958
with:
6059
commit: ${{ github.event.workflow_run.head_sha }}
61-
event_file: event/event.json
60+
event_file: event/event-file-ubuntu-24.04/event.json
6261
event_name: ${{ github.event.workflow_run.event }}
6362
large_files: true
6463
report_individual_runs: true

0 commit comments

Comments
 (0)