1name: Publish BabbleSim Tests Results
2
3on:
4  workflow_run:
5    workflows: ["BabbleSim Tests"]
6    types:
7      - completed
8jobs:
9  bsim-test-results:
10    name: "Publish BabbleSim Test Results"
11    runs-on: ubuntu-22.04
12    if: github.event.workflow_run.conclusion != 'skipped'
13
14    steps:
15      - name: Download artifacts
16        uses: dawidd6/action-download-artifact@v2
17        with:
18          run_id: ${{ github.event.workflow_run.id }}
19
20      - name: Publish BabbleSim Test Results
21        uses: EnricoMi/publish-unit-test-result-action@v2
22        with:
23          check_name: BabbleSim Test Results
24          comment_mode: off
25          commit: ${{ github.event.workflow_run.head_sha }}
26          event_file: event/event.json
27          event_name: ${{ github.event.workflow_run.event }}
28          files: "bsim-test-results/**/bsim_results.xml"
29