Skip to content

Commit 226c561

Browse files
committed
update
1 parent bd0de11 commit 226c561

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

actions/taskfile-runner/action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,5 +210,17 @@ runs:
210210
echo "- Command: \`${{ inputs.command }}\`"
211211
echo "- Directory: \`${{ inputs.dir }}\`"
212212
echo "- Task version: \`${{ steps.install.outputs.version }}\`"
213+
214+
if [ -s "$TMP" ]; then
215+
echo ""
216+
if [ "$LINES" -le "$LIMIT" ]; then
217+
echo "### 🧾 Task output"
218+
else
219+
echo "### 🧾 Task output (first ${LIMIT} lines of ${LINES})"
220+
fi
221+
echo '```'
222+
sed -n "1,${LIMIT}p" "$TMP"
223+
echo '```'
224+
fi
213225
} >> "$GITHUB_STEP_SUMMARY"
214226

0 commit comments

Comments
 (0)