@@ -22,6 +22,9 @@ for [Creating a workflow file](https://help.github.com/en/articles/configuring-a
22
22
- ` min-coverage-changed-files ` - [ * optional* {default: 80%}] The minimum code coverage that is required to pass for changed files
23
23
- ` update-comment ` - [ * optional* {default: false}] If true, updates the previous coverage report comment instead of creating new one.
24
24
Requires ` title ` to work properly
25
+ - ` comment-type ` - [ * optional* {pr_comment, summary, both} {default: pr_comment}] Specifies where to add the comment, whether as a PR comment,
26
+ workflow summary, or both.
27
+ - ` pr-number ` - [ * optional* ] The PR number to add the comment to. If not provided, the action will try to get it from the environment.
25
28
- ` title ` - [ * optional* ] Title for the Pull Request comment
26
29
- ` skip-if-no-changes ` - [ * optional* {default: false}] If true, comment won't be added if there is no coverage information present for
27
30
the files changed
61
64
62
65
- name : Add coverage to PR
63
66
id : jacoco
64
- uses :
madrapps/[email protected] .1
67
+ uses :
madrapps/[email protected] .2
65
68
with :
66
69
paths : |
67
70
${{ github.workspace }}/**/build/reports/jacoco/prodNormalDebugCoverage/prodNormalDebugCoverage.xml,
@@ -121,7 +124,7 @@ refer [jacoco-android-playground](https://github.com/thsaravana/jacoco-android-p
121
124
` ` ` yaml
122
125
- name: Jacoco Report to PR
123
126
id: jacoco
124
- uses: madrapps/[email protected] .1
127
+ uses: madrapps/[email protected] .2
125
128
with:
126
129
paths: ${{ github.workspace }}/build/reports/jacoco/testCoverage/testCoverage.xml
127
130
token: ${{ secrets.GITHUB_TOKEN }}
@@ -142,7 +145,7 @@ refer [jacoco-android-playground](https://github.com/thsaravana/jacoco-android-p
142
145
` ` ` yaml
143
146
- name: Jacoco Report to PR
144
147
id: jacoco
145
- uses: madrapps/[email protected] .1
148
+ uses: madrapps/[email protected] .2
146
149
with:
147
150
paths: |
148
151
${{ github.workspace }}/**/build/reports/jacoco/**/prodNormalDebugCoverage.xml,
@@ -162,7 +165,7 @@ refer [jacoco-android-playground](https://github.com/thsaravana/jacoco-android-p
162
165
` ` ` yaml
163
166
- name: Jacoco Report to PR
164
167
id: jacoco
165
- uses: madrapps/[email protected] .1
168
+ uses: madrapps/[email protected] .2
166
169
with:
167
170
paths: ${{ github.workspace }}/build/reports/jacoco/testCoverage/testCoverage.xml
168
171
token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments