Skip to content

Commit b72348b

Browse files
committed
tee output to console
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.
1 parent 5827fdd commit b72348b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ runs:
2020
env:
2121
GITHUB_ACTION_PATH: ${{ github.action_path }}
2222

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

0 commit comments

Comments
 (0)