Skip to content

Commit

Permalink
📝 Update example of multiline string
Browse files Browse the repository at this point in the history
  • Loading branch information
marocchino committed Nov 7, 2024
1 parent 19bc025 commit e4e1f94
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,17 @@ test:
- name: Run Test
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "test_result<<$EOF" >> "$GITHUB_ENV"
rake test >> "$GITHUB_ENV"
echo "$EOF" >> "$GITHUB_ENV"
{
echo "TEST_RESULT<<$EOF"
rake test
echo "$EOF"
} >> "$GITHUB_ENV"
- uses: marocchino/sticky-pull-request-comment@v2
with:
header: test
message: |
```
${{ env.test_result }}
${{ env.TEST_RESULT }}
```
````

Expand All @@ -59,16 +61,18 @@ test:
- name: Run Test
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "test_result<<$EOF" >> "$GITHUB_ENV"
rake test >> "$GITHUB_ENV"
echo "$EOF" >> "$GITHUB_ENV"
{
echo "TEST_RESULT<<$EOF"
rake test
echo "$EOF"
} >> "$GITHUB_ENV"
- uses: marocchino/sticky-pull-request-comment@v2
with:
append: true
message: |
Test with ${{ github.sha }}.
```
${{ env.test_result }}
${{ env.TEST_RESULT }}
```
````

Expand Down

0 comments on commit e4e1f94

Please sign in to comment.