diff --git a/.github/workflows/auto_comment.yml b/.github/workflows/auto_comment.yml index 6bae1c7..0d0f872 100644 --- a/.github/workflows/auto_comment.yml +++ b/.github/workflows/auto_comment.yml @@ -22,13 +22,17 @@ jobs: - name: Print hello id: print-hello + # this uses https://trstringer.com/github-actions-multiline-strings/ run: | - python .github/scripts/hello_world.py >> $GITHUB_HELLO + HELLO=$(python .github/scripts/hello_world.py) + echo "MY_STRING<> $GITHUB_ENV + echo "$MY_STRING" >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV - name: Show hello id: show-hello run: | - echo ${{ env.GITHUB_HELLO }} + echo ${{ env.MY_STRING }} - name: Create comment uses: peter-evans/create-or-update-comment@v3