@@ -172,19 +172,18 @@ jobs:
172172 PR_NUMBER="${{ github.event.inputs.pr_number }}"
173173 FAILED_NAMES="${{ steps.analyze.outputs.failed-names }}"
174174
175- MESSAGE=$( cat <<EOF
176- 🔧 **Attempting to fix failing checks**
175+ cat > /tmp/pr-comment.txt <<EOF
176+ 🔧 **Attempting to fix failing checks**
177177
178- I've detected failures in : $FAILED_NAMES
178+ I've detected failures in: $FAILED_NAMES
179179
180- Analyzing the issues and will attempt to fix them automatically.
180+ Analyzing the issues and will attempt to fix them automatically.
181181
182- ---
183- 🤖 *AI Engineering Maintenance Bot - Maintaining Vector Institute Repositories built by AI Engineering*
184- EOF
185- )
182+ ---
183+ 🤖 *AI Engineering Maintenance Bot - Maintaining Vector Institute Repositories built by AI Engineering*
184+ EOF
186185
187- gh pr comment $PR_NUMBER --repo "$REPO" --body "$MESSAGE"
186+ gh pr comment $PR_NUMBER --repo "$REPO" --body-file /tmp/pr-comment.txt
188187 env :
189188 GH_TOKEN : ${{ secrets.ORG_ACCESS_TOKEN }}
190189
@@ -259,31 +258,29 @@ Co-authored-by: AI Engineering Maintenance Bot <aieng-bot@vectorinstitute.ai>"
259258 PR_NUMBER="${{ github.event.inputs.pr_number }}"
260259
261260 if [ "${{ steps.push-fixes.outputs.changes-pushed }}" = "true" ]; then
262- MESSAGE=$( cat <<EOF
263- ✅ **Fixes applied!**
261+ cat > /tmp/pr-result.txt <<EOF
262+ ✅ **Fixes applied!**
264263
265- I've pushed fixes for the failing checks. The CI will re-run automatically.
264+ I've pushed fixes for the failing checks. The CI will re-run automatically.
266265
267- Please review the changes to verify they're correct.
266+ Please review the changes to verify they're correct.
268267
269- ---
270- 🤖 *AI Engineering Maintenance Bot - Maintaining Vector Institute Repositories built by AI Engineering*
271- EOF
272- )
268+ ---
269+ 🤖 *AI Engineering Maintenance Bot - Maintaining Vector Institute Repositories built by AI Engineering*
270+ EOF
273271 else
274- MESSAGE=$( cat <<EOF
275- 🔍 **Analysis complete**
272+ cat > /tmp/pr-result.txt <<EOF
273+ 🔍 **Analysis complete**
276274
277- Gemini CLI has analyzed the failures and provided suggestions in the comments above.
275+ Gemini CLI has analyzed the failures and provided suggestions in the comments above.
278276
279- If the fixes weren't applied automatically, you may need to review and apply them manually.
277+ If the fixes weren't applied automatically, you may need to review and apply them manually.
280278
281- ---
282- 🤖 *AI Engineering Maintenance Bot - Maintaining Vector Institute Repositories built by AI Engineering*
283- EOF
284- )
279+ ---
280+ 🤖 *AI Engineering Maintenance Bot - Maintaining Vector Institute Repositories built by AI Engineering*
281+ EOF
285282 fi
286283
287- gh pr comment $PR_NUMBER --repo "$REPO" --body "$MESSAGE"
284+ gh pr comment $PR_NUMBER --repo "$REPO" --body-file /tmp/pr-result.txt
288285 env :
289286 GH_TOKEN : ${{ secrets.ORG_ACCESS_TOKEN }}
0 commit comments