Skip to content

Commit

Permalink
capture output
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoostenveld committed Aug 24, 2023
1 parent de00d85 commit edc3779
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/auto_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF" >> $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
Expand Down

0 comments on commit edc3779

Please sign in to comment.