Skip to content

Report

Report #1546

Workflow file for this run

name: Report
on:
workflow_run:
workflows: [Github-CI]
types: [completed]
permissions:
checks: write
jobs:
testpackage_report:
runs-on: ubuntu-latest
steps:
- name: download testpackage output
# Note we are downloading an artifact from a
# *different* workflow here.
uses: ursg/action-download-artifact@v2
with:
name: testpackage-output
workflow: ${{ github.event.workflow.id }}
run_id: ${{ github.event.workflow_run.id }}
- name: unpack and process pr output
id: unpack
run: |
tar -xzvf testpackage-output.tar.gz
cat testpackage_output_variables.txt >> $GITHUB_OUTPUT
# Limit Report filesize, as github only allows 64k PR reports
truncate --size='<60K' testpackage_check_description.txt
- name: Generate PR check report
uses: ursg/[email protected]
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
sha: ${{github.event.workflow_run.head_sha}}
name: Testpackage result
conclusion: ${{ steps.unpack.outputs.conclusion }}
output: |
{"title": "Testpackage result", "summary":"${{ steps.unpack.outputs.summary }}"}
output_text_description_file: testpackage_check_description.txt
## No need to bother with JUnit reports if the check runs work
#- name: Build test report
# uses: mikepenz/action-junit-report@v3
# with:
# report_paths: 'testpackage_output_junit*.xml'
# detailed_summary: true
# include_passed: true