1 name: Publish CoreValidation Test Results
5 workflows: ["CoreValidation"]
6 branches-ignore: ["develop"]
12 name: Publish CoreValidation Test Results
13 runs-on: ubuntu-latest
19 if: github.event.workflow_run.conclusion != 'skipped'
22 - name: Download test results
24 GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
26 mkdir -p artifacts && cd artifacts
28 artifacts_url=${{ github.event.workflow_run.artifacts_url }}
30 gh api "$artifacts_url" -q '.artifacts[] | select(.name=="tests" or .name=="EventFile") | [.name, .archive_download_url] | @tsv' | \
31 while read artifact; do
32 IFS=$'\t' read name url <<< "$artifact"
33 gh api $url > "$name.zip"
34 unzip -d "$name" "$name.zip"
37 - name: Publish Test Results
38 uses: EnricoMi/publish-unit-test-result-action@v2
40 commit: ${{ github.event.workflow_run.head_sha }}
41 event_file: artifacts/EventFile/event.json
42 report_individual_runs: true
43 event_name: ${{ github.event.workflow_run.event }}
44 junit_files: "artifacts/**/*.junit"