Skip to content

Commit

Permalink
Make token to optional (#250)
Browse files Browse the repository at this point in the history
Make 'token' to optional
  • Loading branch information
cooper-oh authored Dec 7, 2023
1 parent 68e6d45 commit 23a5213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Create a workflow `.yml` file in your repositories `.github/workflows` directory
### Inputs

- `path` - [**required** string[]] List of paths to the generated kover report xml files
- `token` - [**required** string] Github personal token to add commits to the pull request
- `token` - [*optional* string] GitHub personal token to add commits to the pull request
- `title` - [*optional* string] Title for the pull request comment
- `update-comment` - [*optional* boolean (default: `false`)] Update the coverage report comment instead of creating a new one. Requires `title` to be set.
- `min-coverage-overall` - [*optional* integer] The minimum code coverage that is required to pass for overall project
Expand Down Expand Up @@ -54,7 +54,6 @@ jobs:
path: |
${{ github.workspace }}/project1/build/reports/kover/report.xml
${{ github.workspace }}/project2/build/reports/kover/report.xml
token: ${{ secrets.GITHUB_TOKEN }}
title: Code Coverage
update-comment: true
min-coverage-overall: 80
Expand Down
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ inputs:
required: true
description: 'Path to the generated kover report xml file'
token:
required: true
required: false
description: 'Github personal token to add commits to the pull request'
default: ${{ github.token }}
title:
required: false
description: 'Title for the pull request comment'
Expand Down

0 comments on commit 23a5213

Please sign in to comment.