Skip to content

Commit 63b098e

Browse files
committed
Add ai analysis result to job summary
1 parent 08f2c2c commit 63b098e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/extension-ai-analysis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,9 @@ jobs:
7373
NEBULA_API_KEY: ${{ secrets.NEBULA_API_KEY }}
7474
id: ai-analysis
7575
run: |
76-
python scripts/extension_ai_analysis.py \
77-
$(cat /tmp/ai-analysis-reports/changed_files.txt | tr '\n' ' ')
76+
RESULT=$(python scripts/extension_ai_analysis.py \
77+
$(cat /tmp/ai-analysis-reports/changed_files.txt | tr '\n' ' '))
78+
echo "$RESULT"
79+
# Append result to GitHub Actions job summary
80+
echo "### AI Analysis Result" >> $GITHUB_STEP_SUMMARY
81+
echo "$RESULT" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)