apply GitHub token by default (#255)

* feat: apply GitHub token by default

* use single quote

* remove $
This commit is contained in:
Jonathan Yu 2021-03-21 14:13:35 -07:00 committed by GitHub
parent 1143f51a44
commit 9632fd5dc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -10,7 +10,6 @@ This library runs with GitHub Actions. If you feel that the example grammar belo
```yaml
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: |
Release ${{ github.sha }} to <https://pr-${{ github.event.number }}.example.com>
```
@ -156,7 +155,7 @@ with:
### `GITHUB_TOKEN`
**Required** set secrets.GITHUB_TOKEN here
**Optional**, typically set secrets.GITHUB_TOKEN. If not set, this will use `${{ github.token }}`.
## Outputs

View file

@ -27,8 +27,8 @@ inputs:
description: "other repo name limited use on github enterprise. If not set, the current repo is used by default. Note that When you trying changing a repo, be aware that GITHUB_TOKEN should also use that repo's."
required: false
GITHUB_TOKEN:
description: "set secrets.GITHUB_TOKEN here"
required: true
description: 'The GitHub access token (e.g. secrets.GITHUB_TOKEN) used to create or update the comment. This defaults to {{ github.token }}.'
default: '${{ github.token }}'
runs:
using: "node12"
main: "dist/index.js"