Skip to content

Commit 57adbde

Browse files
themr0cclaude
andauthored
[RHDHBUGS-2954]: Fix empty CQA output in CI when checks fail (#2057)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d758510 commit 57adbde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/content-quality-assessment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@ jobs:
121121
cd pr-content
122122
git remote add base https://github.com/${{ github.event.pull_request.base.repo.full_name }}.git
123123
git fetch base ${{ github.event.pull_request.base.ref }}
124-
OUTPUT=$(node build/scripts/cqa/index.js --all 2>&1)
124+
OUTPUT=$(node build/scripts/cqa/index.js --all 2>&1) || CQA_EXIT=$?
125125
echo "output<<EOF" >> $GITHUB_OUTPUT
126126
echo "$OUTPUT" >> $GITHUB_OUTPUT
127127
echo "EOF" >> $GITHUB_OUTPUT
128+
exit ${CQA_EXIT:-0}
128129
129130
- name: Post CQA checklist as PR comment
130131
if: always()

0 commit comments

Comments
 (0)