You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ For more information on these inputs, see the [Workflow syntax for GitHub Action
18
18
-`github-token`: Set the `${{ secrets.GITHUB_TOKEN }}` token to have the action comment the coverage summary in the pull request. This token is provided by Actions, you do not need to create your own token. Optional. Default: ``
19
19
-`working-directory`: The working directory containing the source files referenced in the LCOV files. Optional. Default: `./`
20
20
-`title-prefix`: A prefix before the title "LCOV of commit..." Optional. Default: ``
21
+
-`update-comment`: Set to `true` to update previous code coverage comment if such exists. When set to `false` new comment is always created. Optional. Default: `false`
21
22
22
23
### Outputs
23
24
-`total-coverage`: The total coverage from scanned files.
@@ -51,6 +52,7 @@ jobs:
51
52
artifact-name: code-coverage-report
52
53
github-token: ${{ secrets.GITHUB_TOKEN }}
53
54
working-directory: apps/my-first-app
55
+
update-comment: true
54
56
```
55
57
*Note:* Only the `pull_request` and `pull_request_target` events are supported. This action does nothing when triggered by other event types.
core.info("github-token received is empty. Skipping writing a comment in the PR.");
50
46
core.info("Note: This could happen even if github-token was provided in workflow file. It could be because your github token does not have permissions for commenting in target repo.")
0 commit comments