From e4e1f949b9184fba5d4be2a20fa1946dd5b322ea Mon Sep 17 00:00:00 2001 From: marocchino Date: Fri, 8 Nov 2024 03:22:59 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20example=20of=20multilin?= =?UTF-8?q?e=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7981fdf8..759d4d11 100644 --- a/README.md +++ b/README.md @@ -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 }} ``` ```` @@ -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 }} ``` ````