Skip to content

Commit bea4d2b

Browse files
committed
Fix YAML syntax error in PR comment heredoc
- Replace heredoc with echo statements to avoid YAML parsing issues - Heredoc with ** at start was interpreted as YAML alias - Use echo statements to build PR comment dynamically
1 parent 2ddc217 commit bea4d2b

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/fix-remote-pr.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -457,19 +457,21 @@ jobs:
457457
TRACE_URL="${{ steps.upload-trace.outputs.trace_url }}"
458458
DASHBOARD_URL="https://catalog.vectorinstitute.ai/aieng-bot-maintain"
459459
460-
cat > /tmp/pr-result.txt <<EOF
461-
**Automated fix applied**
462-
463-
Fixed ${FAILURE_TYPE} failures after dependency updates.
464-
465-
${FIX_SUMMARY}
466-
467-
CI checks will re-run automatically.
468-
469-
**[View detailed trace on dashboard](${DASHBOARD_URL})** | [Raw trace](${TRACE_URL})
460+
echo "**Automated fix applied**" > /tmp/pr-result.txt
461+
echo "" >> /tmp/pr-result.txt
462+
echo "Fixed ${FAILURE_TYPE} failures after dependency updates." >> /tmp/pr-result.txt
463+
echo "" >> /tmp/pr-result.txt
464+
465+
if [ -n "$FIX_SUMMARY" ]; then
466+
echo "$FIX_SUMMARY" >> /tmp/pr-result.txt
467+
echo "" >> /tmp/pr-result.txt
468+
fi
470469
471-
*AI Engineering Maintenance Bot*
472-
EOF
470+
echo "CI checks will re-run automatically." >> /tmp/pr-result.txt
471+
echo "" >> /tmp/pr-result.txt
472+
echo "**[View detailed trace on dashboard](${DASHBOARD_URL})** | [Raw trace](${TRACE_URL})" >> /tmp/pr-result.txt
473+
echo "" >> /tmp/pr-result.txt
474+
echo "*AI Engineering Maintenance Bot*" >> /tmp/pr-result.txt
473475
474476
gh pr comment $PR_NUMBER --repo "$REPO" --body-file /tmp/pr-result.txt
475477
env:

0 commit comments

Comments
 (0)