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 75
75
INPUT_MODULE : ${{ inputs.module }}
76
76
run : |
77
77
tmpout=$(mktemp)
78
+ # Run the command and capture its output in `tmpout`
79
+ # while also displaying it in the logs
78
80
cd ${{ inputs.workdir }} && { \
79
81
DAGGER_CLOUD_TOKEN=${{ inputs.cloud-token }} \
80
82
dagger \
83
85
${INPUT_MODULE:+-m $INPUT_MODULE} \
84
86
${{ inputs.args }}; } | tee "${tmpout}"
85
87
88
+ # Send the output to GITHUB_OUTPUT for further processing if needed
86
89
(echo -n "stdout=" && cat "${tmpout}") >> "$GITHUB_OUTPUT"
87
90
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
+
88
101
- if : inputs.engine-stop == 'true'
89
102
shell : bash
90
103
run : |
You can’t perform that action at this time.
0 commit comments