Skip to content

Commit

Permalink
Merge pull request #22 from jackton1/patch-1
Browse files Browse the repository at this point in the history
Add a default value for github-token input.
  • Loading branch information
romeovs authored Jun 1, 2021
2 parents 9f75fe6 + fff5943 commit a1c0d02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ Total Coverage: <b>99.39%</b>

## Inputs

##### `github-token` (**Required**)
Github token used for posting the comment. To use the key provided by the GitHub
action runner, use `${{ secrets.GITHUB_TOKEN }}`.
##### `github-token` (**Optional**)
Github token used for posting the comment. Defaults to `${{ github.token }}`.

For alternative `github-token` values see: [Creating Personal Access Tokens](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token)

##### `lcov-file` (**Optional**)
The location of the lcov file to read the coverage report from. Defaults to
Expand All @@ -32,7 +33,6 @@ branch. When this is set a diff of the coverage percentages is shown.
```yml
uses: romeovs/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./coverage/lcov.info
```
Expand Down
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ inputs:
github-token:
description: Github token
required: true
default: ${{ github.token }}
lcov-file:
description: The location of the lcov.info file
required: false
Expand Down

0 comments on commit a1c0d02

Please sign in to comment.