File tree Expand file tree Collapse file tree 3 files changed +28
-5
lines changed
Expand file tree Collapse file tree 3 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 1+ name : CI Post Comment
2+ on :
3+ workflow_run :
4+ workflows : ["CI"]
5+ types :
6+ - completed
7+ jobs :
8+ post-comment :
9+ if : ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' }}
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Download code-coverage-results
13+ uses : actions/download-artifact@v4
14+ with :
15+ name : code-coverage-results
16+ run-id : ${{ github.event.workflow_run.id }}
17+ github-token : ${{ secrets.GITHUB_TOKEN }}
18+
19+ - name : Add Coverage PR Comment
20+ uses : marocchino/sticky-pull-request-comment@v2
21+ with :
22+ recreate : true
23+ path : code-coverage-results.md
24+ number : ${{ github.event.workflow_run.pull_requests[0].number }}
Original file line number Diff line number Diff line change @@ -101,10 +101,8 @@ jobs:
101101 format : markdown
102102 output : both
103103
104- - name : Add Coverage PR Comment
105- uses : marocchino/sticky-pull-request-comment@v2
106- if : github.event_name == 'pull_request'
104+ - name : Upload Coverage Summary Report
105+ uses : actions/upload-artifact@v4
107106 with :
108- recreate : true
109107 path : code-coverage-results.md
110- GITHUB_TOKEN : ${{ secrets.GH_PAT_TOKEN_PR_WRITE }}
108+ name : code-coverage-results
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
1010### Changed
1111
12+ - Split up ` CI ` workflow into two separate workflows for the comment posting to work for PRs from forks.
1213- migrated to eslint 9 flat config
1314
1415## [ 1.2.1] - 2025-03-18
You can’t perform that action at this time.
0 commit comments