forked from fmihpc/vlasiator
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.58 KB
/
pr_report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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