mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-14 12:31:14 +00:00
apply GitHub token by default (#255)
* feat: apply GitHub token by default * use single quote * remove $
This commit is contained in:
parent
1143f51a44
commit
9632fd5dc1
2 changed files with 3 additions and 4 deletions
|
|
@ -10,7 +10,6 @@ This library runs with GitHub Actions. If you feel that the example grammar belo
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
message: |
|
message: |
|
||||||
Release ${{ github.sha }} to <https://pr-${{ github.event.number }}.example.com>
|
Release ${{ github.sha }} to <https://pr-${{ github.event.number }}.example.com>
|
||||||
```
|
```
|
||||||
|
|
@ -156,7 +155,7 @@ with:
|
||||||
|
|
||||||
### `GITHUB_TOKEN`
|
### `GITHUB_TOKEN`
|
||||||
|
|
||||||
**Required** set secrets.GITHUB_TOKEN here
|
**Optional**, typically set secrets.GITHUB_TOKEN. If not set, this will use `${{ github.token }}`.
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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."
|
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
|
required: false
|
||||||
GITHUB_TOKEN:
|
GITHUB_TOKEN:
|
||||||
description: "set secrets.GITHUB_TOKEN here"
|
description: 'The GitHub access token (e.g. secrets.GITHUB_TOKEN) used to create or update the comment. This defaults to {{ github.token }}.'
|
||||||
required: true
|
default: '${{ github.token }}'
|
||||||
runs:
|
runs:
|
||||||
using: "node12"
|
using: "node12"
|
||||||
main: "dist/index.js"
|
main: "dist/index.js"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue