mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-15 04:46:22 +00:00
docs: omit github token in docs
This commit is contained in:
parent
832d4d1261
commit
9945cf63fa
4 changed files with 38 additions and 50 deletions
|
|
@ -9,7 +9,6 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- uses: ./
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
header: FromPR
|
||||
message: |
|
||||
Test ${{ github.sha }} is successfully ended.
|
||||
|
|
|
|||
3
.github/workflows/comment_on_push.yml
vendored
3
.github/workflows/comment_on_push.yml
vendored
|
|
@ -9,11 +9,8 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- uses: jwalton/gh-find-current-pr@v1
|
||||
id: finder
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: ./
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
number: ${{ steps.finder.outputs.pr }}
|
||||
message: |
|
||||
Test ${{ github.sha }} is successfully ended.
|
||||
|
|
|
|||
13
README.md
13
README.md
|
|
@ -23,7 +23,6 @@ release:
|
|||
...
|
||||
- uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
header: release
|
||||
message: |
|
||||
Release ${{ github.sha }} to <https://pr-${{ github.event.number }}.example.com>
|
||||
|
|
@ -40,7 +39,6 @@ test:
|
|||
echo "::set-output name=result::$OUTPUT"
|
||||
- uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
header: test
|
||||
message: |
|
||||
```
|
||||
|
|
@ -63,7 +61,6 @@ test:
|
|||
echo "::set-output name=result::$OUTPUT"
|
||||
- uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
append: true
|
||||
message: |
|
||||
Test with ${{ github.sha }}.
|
||||
|
|
@ -78,12 +75,9 @@ If for some reason, triggering on pr is not possible, you can use push.
|
|||
|
||||
```yaml
|
||||
- uses: jwalton/gh-find-current-pr@v1
|
||||
id: finder
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
id: finder
|
||||
- uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
number: ${{ steps.finder.outputs.pr }}
|
||||
message: |
|
||||
Test ${{ github.sha }} is successfully ended.
|
||||
|
|
@ -95,7 +89,6 @@ with:
|
|||
```yaml
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
path: path-to-comment-contents.txt
|
||||
```
|
||||
|
||||
|
|
@ -104,7 +97,6 @@ with:
|
|||
```yaml
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
recreate: true
|
||||
message: |
|
||||
Release ${{ github.sha }} to <https://pr-${{ github.event.number }}.example.com>
|
||||
|
|
@ -115,7 +107,6 @@ with:
|
|||
```yaml
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
delete: true
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ inputs:
|
|||
GITHUB_TOKEN:
|
||||
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 }}'
|
||||
required: false
|
||||
runs:
|
||||
using: "node12"
|
||||
main: "dist/index.js"
|
||||
|
|
|
|||
Loading…
Reference in a new issue