-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (28 loc) · 923 Bytes
/
pr-comment.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
name: pr-comment
on:
workflow_run:
workflows: ["test"]
types:
- completed
jobs:
comment:
name: Comment on PR
runs-on: ubuntu-20.04
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Download PR meta and Coverage summery artifacts
uses: dawidd6/action-download-artifact@v2
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
run_id: ${{ github.event.workflow_run.id }}
name: pr-comment-meta
- name: Display structure of downloaded files
run: ls -R
- name: Restore preserved PR meta
run: cat pr.env >> "${GITHUB_ENV}"
- name: Add Coverage PR comment
uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ env.PR_NUMBER }}
recreate: true
path: code-coverage-results.md