Skip to content

Commit

Permalink
ci(test): run report from separate workflow in repo context for write…
Browse files Browse the repository at this point in the history
… access #9916
  • Loading branch information
poikilotherm committed Sep 18, 2023
1 parent ebe8914 commit fd0f70c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/maven_tests_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: report
on:
workflow_run:
workflows:
- "Maven Test"
types:
- completed

permissions:
checks: write

jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Download Test Report
uses: dawidd6/action-download-artifact@v2
with:
name: junit-test-results
workflow: ${{ github.event.workflow.id }}
run_id: ${{ github.event.workflow_run.id }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
with:
commit: ${{github.event.workflow_run.head_sha}}
report_paths: '**/*-reports/TEST-*.xml'

0 comments on commit fd0f70c

Please sign in to comment.