File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -192,20 +192,22 @@ runs:
192192 - name : Task Runner Summary
193193 if : inputs.show_summary != 'false'
194194 shell : bash
195+ continue-on-error : true
196+ env :
197+ OUT : ${{ steps.run.outputs.output }}
198+ LIMIT : ${{ inputs.summary_limit }}
195199 run : |
196- set -euo pipefail
197- OUT="${{ steps.run.outputs.output }}"
198- LIMIT="${{ inputs.summary_limit }}"
199- if ! [[ "$LIMIT" =~ ^[0-9]+$ ]]; then LIMIT=250; fi
200+ set -eo pipefail
201+ [[ "$LIMIT" =~ ^[0-9]+$ ]] || LIMIT=250
200202
201203 {
202204 echo "## 🧰 Task Runner Summary"
203205 echo "- Command: \`${{ inputs.command }}\`"
204206 echo "- Directory: \`${{ inputs.dir }}\`"
205207 echo "- Task version: \`${{ steps.install.outputs.version }}\`"
206208
207- if [ -n "$OUT" ]; then
208- echo ""
209+ if [ -n "${ OUT:-} " ]; then
210+ echo
209211 TOTAL=$(printf "%s\n" "$OUT" | wc -l | awk '{print $1}')
210212 if [ "$TOTAL" -le "$LIMIT" ]; then
211213 echo "### 🧾 Task output"
@@ -216,4 +218,4 @@ runs:
216218 printf "%s\n" "$OUT" | awk -v lim="$LIMIT" 'NR<=lim{print}'
217219 echo '```'
218220 fi
219- } >> "$GITHUB_STEP_SUMMARY"
221+ } >> "${ GITHUB_STEP_SUMMARY:-/dev/null}" || true
You can’t perform that action at this time.
0 commit comments