mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-12 11:41:14 +00:00
๐ Update example of multiline string
This commit is contained in:
parent
19bc025a17
commit
e4e1f949b9
1 changed files with 12 additions and 8 deletions
20
README.md
20
README.md
|
|
@ -39,15 +39,17 @@ test:
|
||||||
- name: Run Test
|
- name: Run Test
|
||||||
run: |
|
run: |
|
||||||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
|
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
|
||||||
echo "test_result<<$EOF" >> "$GITHUB_ENV"
|
{
|
||||||
rake test >> "$GITHUB_ENV"
|
echo "TEST_RESULT<<$EOF"
|
||||||
echo "$EOF" >> "$GITHUB_ENV"
|
rake test
|
||||||
|
echo "$EOF"
|
||||||
|
} >> "$GITHUB_ENV"
|
||||||
- uses: marocchino/sticky-pull-request-comment@v2
|
- uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
header: test
|
header: test
|
||||||
message: |
|
message: |
|
||||||
```
|
```
|
||||||
${{ env.test_result }}
|
${{ env.TEST_RESULT }}
|
||||||
```
|
```
|
||||||
````
|
````
|
||||||
|
|
||||||
|
|
@ -59,16 +61,18 @@ test:
|
||||||
- name: Run Test
|
- name: Run Test
|
||||||
run: |
|
run: |
|
||||||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
|
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
|
||||||
echo "test_result<<$EOF" >> "$GITHUB_ENV"
|
{
|
||||||
rake test >> "$GITHUB_ENV"
|
echo "TEST_RESULT<<$EOF"
|
||||||
echo "$EOF" >> "$GITHUB_ENV"
|
rake test
|
||||||
|
echo "$EOF"
|
||||||
|
} >> "$GITHUB_ENV"
|
||||||
- uses: marocchino/sticky-pull-request-comment@v2
|
- uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
append: true
|
append: true
|
||||||
message: |
|
message: |
|
||||||
Test with ${{ github.sha }}.
|
Test with ${{ github.sha }}.
|
||||||
```
|
```
|
||||||
${{ env.test_result }}
|
${{ env.TEST_RESULT }}
|
||||||
```
|
```
|
||||||
````
|
````
|
||||||
|
|
||||||
|
|
|
||||||
Loadingโฆ
Reference in a new issue