Skip to content

Commit e15c4f9

Browse files
committed
Fix tool output leaking with output disabled
1 parent b691886 commit e15c4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reuse-action-wrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [ "$INPUT_SUMMARY" = "json" ]; then
2424
fi
2525

2626
# Run REUSE
27-
reuse "$@" | tee -a "$GITHUB_STEP_SUMMARY"
27+
reuse "$@" | (if ! [ "$INPUT_SUMMARY" = "none" ]; then tee -a "$GITHUB_STEP_SUMMARY"; else cat; fi)
2828

2929
if [ "$INPUT_SUMMARY" = "json" ]; then
3030
# Add code block footer to step summary

0 commit comments

Comments
 (0)