Skip to content

Commit

Permalink
Fix tool output leaking with output disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nea89o committed Nov 13, 2024
1 parent b19cabb commit 140e81a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reuse-action-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [ "$INPUT_SUMMARY" = "json" ]; then
fi

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

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

0 comments on commit 140e81a

Please sign in to comment.