mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-15 20:56:31 +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: actions/checkout@v2
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
header: FromPR
|
header: FromPR
|
||||||
message: |
|
message: |
|
||||||
Test ${{ github.sha }} is successfully ended.
|
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: actions/checkout@v2
|
||||||
- uses: jwalton/gh-find-current-pr@v1
|
- uses: jwalton/gh-find-current-pr@v1
|
||||||
id: finder
|
id: finder
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
number: ${{ steps.finder.outputs.pr }}
|
number: ${{ steps.finder.outputs.pr }}
|
||||||
message: |
|
message: |
|
||||||
Test ${{ github.sha }} is successfully ended.
|
Test ${{ github.sha }} is successfully ended.
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ release:
|
||||||
...
|
...
|
||||||
- uses: marocchino/sticky-pull-request-comment@v2
|
- uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
header: release
|
header: release
|
||||||
message: |
|
message: |
|
||||||
Release ${{ github.sha }} to <https://pr-${{ github.event.number }}.example.com>
|
Release ${{ github.sha }} to <https://pr-${{ github.event.number }}.example.com>
|
||||||
|
|
@ -40,7 +39,6 @@ test:
|
||||||
echo "::set-output name=result::$OUTPUT"
|
echo "::set-output name=result::$OUTPUT"
|
||||||
- uses: marocchino/sticky-pull-request-comment@v2
|
- uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
header: test
|
header: test
|
||||||
message: |
|
message: |
|
||||||
```
|
```
|
||||||
|
|
@ -63,7 +61,6 @@ test:
|
||||||
echo "::set-output name=result::$OUTPUT"
|
echo "::set-output name=result::$OUTPUT"
|
||||||
- uses: marocchino/sticky-pull-request-comment@v2
|
- uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
append: true
|
append: true
|
||||||
message: |
|
message: |
|
||||||
Test with ${{ github.sha }}.
|
Test with ${{ github.sha }}.
|
||||||
|
|
@ -79,11 +76,8 @@ If for some reason, triggering on pr is not possible, you can use push.
|
||||||
```yaml
|
```yaml
|
||||||
- uses: jwalton/gh-find-current-pr@v1
|
- uses: jwalton/gh-find-current-pr@v1
|
||||||
id: finder
|
id: finder
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- uses: marocchino/sticky-pull-request-comment@v2
|
- uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
number: ${{ steps.finder.outputs.pr }}
|
number: ${{ steps.finder.outputs.pr }}
|
||||||
message: |
|
message: |
|
||||||
Test ${{ github.sha }} is successfully ended.
|
Test ${{ github.sha }} is successfully ended.
|
||||||
|
|
@ -95,7 +89,6 @@ with:
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
path: path-to-comment-contents.txt
|
path: path-to-comment-contents.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -104,7 +97,6 @@ with:
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
recreate: true
|
recreate: true
|
||||||
message: |
|
message: |
|
||||||
Release ${{ github.sha }} to <https://pr-${{ github.event.number }}.example.com>
|
Release ${{ github.sha }} to <https://pr-${{ github.event.number }}.example.com>
|
||||||
|
|
@ -115,7 +107,6 @@ with:
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
delete: true
|
delete: true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ inputs:
|
||||||
GITHUB_TOKEN:
|
GITHUB_TOKEN:
|
||||||
description: 'The GitHub access token (e.g. secrets.GITHUB_TOKEN) used to create or update the comment. This defaults to {{ 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 }}'
|
default: '${{ github.token }}'
|
||||||
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: "node12"
|
using: "node12"
|
||||||
main: "dist/index.js"
|
main: "dist/index.js"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue