Skip to content

Commit 95a1e30

Browse files
Copilotshino
andauthored
fix(ci/diet): fix shell heredoc in diet-check.yml (#2471)
* Initial plan * fix(ci/diet): replace broken heredoc with grouped echo statements The heredoc body and closing EOF marker were at column 0, breaking out of the YAML literal block scalar (run: |). This made the workflow YAML unparseable, causing the CI run to fail with 0 jobs created. Replace with grouped echo statements that maintain proper YAML indentation while producing identical markdown output. Co-authored-by: shino <10225+shino@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: shino <10225+shino@users.noreply.github.com>
1 parent 622a72a commit 95a1e30

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/diet-check.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ jobs:
5252
after_mb=$(awk "BEGIN{printf \"%.1f\", $AFTER_SIZE/1048576}")
5353
before_scanner_mb=$(awk "BEGIN{printf \"%.1f\", $BEFORE_SCANNER_SIZE/1048576}")
5454
after_scanner_mb=$(awk "BEGIN{printf \"%.1f\", $AFTER_SCANNER_SIZE/1048576}")
55-
cat <<EOF >> "$GITHUB_STEP_SUMMARY"
56-
## Diet Metrics
57-
| Metric | Before | After | Delta |
58-
|--------|--------|-------|-------|
59-
| go.sum lines | $BEFORE_GOSUM | $AFTER_GOSUM | ${delta_gosum} |
60-
| Direct deps | ${before_direct} | ${after_direct} | ${delta_direct} |
61-
| Indirect deps | $BEFORE_DEPS | $AFTER_DEPS | ${delta_indirect} |
62-
| Binary size (full) | ${before_mb}MB | ${after_mb}MB | ${delta_kb}KB |
63-
| Binary size (scanner) | ${before_scanner_mb}MB | ${after_scanner_mb}MB | ${delta_scanner_kb}KB |
64-
EOF
55+
{
56+
echo "## Diet Metrics"
57+
echo "| Metric | Before | After | Delta |"
58+
echo "|--------|--------|-------|-------|"
59+
echo "| go.sum lines | $BEFORE_GOSUM | $AFTER_GOSUM | ${delta_gosum} |"
60+
echo "| Direct deps | ${before_direct} | ${after_direct} | ${delta_direct} |"
61+
echo "| Indirect deps | $BEFORE_DEPS | $AFTER_DEPS | ${delta_indirect} |"
62+
echo "| Binary size (full) | ${before_mb}MB | ${after_mb}MB | ${delta_kb}KB |"
63+
echo "| Binary size (scanner) | ${before_scanner_mb}MB | ${after_scanner_mb}MB | ${delta_scanner_kb}KB |"
64+
} >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)