Skip to content

Commit

Permalink
tee output to console
Browse files Browse the repository at this point in the history
This should hopefully help in debugging. It's a bit gnarly to do this
so it relies on some redirection magic. It also needed to be on a new
line to pass the linter (which otherwise doesn't think it's a string).

https://serverfault.com/a/989827

Based on an idea by @oscargus raised in #4.
  • Loading branch information
nickcharlton committed Jun 12, 2024
1 parent 5827fdd commit b72348b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ runs:
env:
GITHUB_ACTION_PATH: ${{ github.action_path }}

- run: bin/diff-check >> $GITHUB_STEP_SUMMARY
- run: >
{ GITHUB_STEP_SUMMARY=$(bin/diff-check | tee /dev/fd/3); } 3>&1
shell: bash

0 comments on commit b72348b

Please sign in to comment.