File tree 2 files changed +30
-3
lines changed
2 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 46
46
47
47
with :
48
48
coverageFile : coverage.xml
49
- token : ${{ secrets.GITHUB_TOKEN }}
49
+ token : ${{ secrets.GH_PR_WRITE_TOKEN }}
50
+ event_file :
51
+ name : " Event File"
52
+ runs-on : ubuntu-latest
53
+ steps :
54
+ - name : Upload
55
+ uses : actions/upload-artifact@v4
56
+ with :
57
+ name : event-file
58
+ path : ${{ github.event_path }}
Original file line number Diff line number Diff line change 1
- name : ' Test Report '
1
+ name : ' Test Results '
2
2
on :
3
3
workflow_run :
4
4
workflows : ['Django CI']
@@ -8,6 +8,7 @@ permissions:
8
8
contents : read
9
9
actions : read
10
10
checks : write
11
+ pull-requests : write
11
12
jobs :
12
13
report :
13
14
runs-on : ubuntu-latest
17
18
artifact : test-results
18
19
name : Django Tests
19
20
path : ' *.xml'
20
- reporter : java-junit
21
+ reporter : java-junit
22
+ test-results :
23
+ name : Test Results
24
+ runs-on : ubuntu-latest
25
+ if : github.event.workflow_run.conclusion != 'skipped'
26
+ steps :
27
+ - name : Download and Extract Artifacts
28
+ uses : dawidd6/action-download-artifact@e7466d1a7587ed14867642c2ca74b5bcc1e19a2d
29
+ with :
30
+ run_id : ${{ github.event.workflow_run.id }}
31
+ path : artifacts
32
+ - name : Publish Test Results
33
+ uses : EnricoMi/publish-unit-test-result-action@v2
34
+ with :
35
+ commit : ${{ github.event.workflow_run.head_sha }}
36
+ event_file : artifacts/event-file/event.json
37
+ event_name : ${{ github.event.workflow_run.event }}
38
+ files : " artifacts/**/*.xml"
You can’t perform that action at this time.
0 commit comments