@@ -136,6 +136,9 @@ jobs:
136
136
echo "$SPELLCHECK_LOG" >> $GITHUB_OUTPUT
137
137
echo "SPELLEOF" >> $GITHUB_OUTPUT
138
138
139
+ echo "Debug: FINAL_EXIT_CODE=$FINAL_EXIT_CODE"
140
+ echo "Debug: spell_failed=true was set"
141
+
139
142
if [ $FINAL_EXIT_CODE -ne 0 ]; then
140
143
echo "Spell check failed! See above for details."
141
144
exit 1
@@ -144,7 +147,7 @@ jobs:
144
147
- name : Check for existing comment
145
148
if : |
146
149
github.event_name == 'pull_request' &&
147
- steps.spellcheck.outputs.spell_failed == '1 '
150
+ steps.spellcheck.outputs.spell_failed == 'true '
148
151
uses : actions/github-script@v6
149
152
id : find-comment
150
153
with :
@@ -166,11 +169,13 @@ jobs:
166
169
- name : Post or update spell check comment
167
170
if : |
168
171
github.event_name == 'pull_request' &&
169
- steps.spellcheck.outputs.spell_failed == '1 '
172
+ steps.spellcheck.outputs.spell_failed == 'true '
170
173
uses : actions/github-script@v6
171
174
with :
172
175
script : |
173
- console.log('Spell check log:', process.env.SPELL_LOG);
176
+ console.log('Debug: Attempting to post/update comment');
177
+ console.log('Debug: spell_failed =', '${{ steps.spellcheck.outputs.spell_failed }}');
178
+
174
179
const message = `Spellcheck has failed. Please review the log and address the issues.
175
180
176
181
Here are a few tips:
0 commit comments