mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-14 20:41:15 +00:00
Update README.md
This commit is contained in:
parent
b503c99d41
commit
f3bbb83000
1 changed files with 8 additions and 8 deletions
16
README.md
16
README.md
|
|
@ -7,7 +7,7 @@ Create comment on pull request, if exists update that comment.
|
||||||
### Basic
|
### Basic
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v1
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
message: |
|
message: |
|
||||||
|
|
@ -21,7 +21,7 @@ In some cases, different actions may require different comments. The header allo
|
||||||
```yaml
|
```yaml
|
||||||
release:
|
release:
|
||||||
...
|
...
|
||||||
- uses: marocchino/sticky-pull-request-comment@v1
|
- uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
header: release
|
header: release
|
||||||
|
|
@ -38,7 +38,7 @@ test:
|
||||||
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
|
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
|
||||||
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
|
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
|
||||||
echo "::set-output name=result::$OUTPUT"
|
echo "::set-output name=result::$OUTPUT"
|
||||||
- uses: marocchino/sticky-pull-request-comment@v1
|
- uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
header: test
|
header: test
|
||||||
|
|
@ -61,7 +61,7 @@ test:
|
||||||
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
|
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
|
||||||
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
|
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
|
||||||
echo "::set-output name=result::$OUTPUT"
|
echo "::set-output name=result::$OUTPUT"
|
||||||
- uses: marocchino/sticky-pull-request-comment@v1
|
- uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
append: true
|
append: true
|
||||||
|
|
@ -81,7 +81,7 @@ If for some reason, triggering on pr is not possible, you can use push.
|
||||||
id: finder
|
id: finder
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- uses: marocchino/sticky-pull-request-comment@v1
|
- uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
number: ${{ steps.finder.outputs.pr }}
|
number: ${{ steps.finder.outputs.pr }}
|
||||||
|
|
@ -93,7 +93,7 @@ with:
|
||||||
### Read comment from a file
|
### Read comment from a file
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v1
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
path: path-to-comment-contents.txt
|
path: path-to-comment-contents.txt
|
||||||
|
|
@ -102,7 +102,7 @@ with:
|
||||||
### Delete previous commit and add comment at bottom
|
### Delete previous commit and add comment at bottom
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v1
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
recreate: true
|
recreate: true
|
||||||
|
|
@ -113,7 +113,7 @@ with:
|
||||||
### Delete previous commit
|
### Delete previous commit
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v1
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
delete: true
|
delete: true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue