Skip to content

Commit 007b7f7

Browse files
authored
Add option to disable printing to job summary (#45)
1 parent a683154 commit 007b7f7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ inputs:
4343
required: false
4444
type: boolean
4545
default: true
46+
print-github-step-summary:
47+
description: 'Print a summary of the installed tracers to the GitHub step summary, otherwise the summary is printed to console (optional). Defaults to true.'
48+
required: false
49+
type: boolean
50+
default: true
4651
# deprecated inputs
4752
service-name:
4853
description: 'Deprecated, alias for service'
@@ -191,5 +196,10 @@ runs:
191196
echo "- __Go:__ $DD_TRACER_VERSION_GO" >> $GITHUB_STEP_SUMMARY
192197
fi
193198
echo "---" >> $GITHUB_STEP_SUMMARY
199+
200+
if [ "${{ inputs.print-github-step-summary }}" == "false" ]; then
201+
cat $GITHUB_STEP_SUMMARY
202+
rm -f $GITHUB_STEP_SUMMARY
203+
fi
194204
shell: bash
195205

0 commit comments

Comments
 (0)