File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 7575 INPUT_MODULE : ${{ inputs.module }}
7676 run : |
7777 tmpout=$(mktemp)
78+ # Run the command and capture its output in `tmpout`
79+ # while also displaying it in the logs
7880 cd ${{ inputs.workdir }} && { \
7981 DAGGER_CLOUD_TOKEN=${{ inputs.cloud-token }} \
8082 dagger \
8385 ${INPUT_MODULE:+-m $INPUT_MODULE} \
8486 ${{ inputs.args }}; } | tee "${tmpout}"
8587
88+ # Send the output to GITHUB_OUTPUT for further processing if needed
8689 (echo -n "stdout=" && cat "${tmpout}") >> "$GITHUB_OUTPUT"
8790
91+ # Append formatted output to GITHUB_STEP_SUMMARY
92+ {
93+ echo "### Dagger Output"
94+ echo ""
95+ echo "<pre><code>"
96+ cat "${tmpout}"
97+ echo "</code></pre>"
98+ echo ""
99+ } >> $GITHUB_STEP_SUMMARY
100+
88101 - if : inputs.engine-stop == 'true'
89102 shell : bash
90103 run : |
You can’t perform that action at this time.
0 commit comments