Skip to content

Commit 673a0cf

Browse files
committed
Update spellcheck comment
1 parent a1a72ab commit 673a0cf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/spelling.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ jobs:
136136
echo "$SPELLCHECK_LOG" >> $GITHUB_OUTPUT
137137
echo "SPELLEOF" >> $GITHUB_OUTPUT
138138
139+
echo "Debug: FINAL_EXIT_CODE=$FINAL_EXIT_CODE"
140+
echo "Debug: spell_failed=true was set"
141+
139142
if [ $FINAL_EXIT_CODE -ne 0 ]; then
140143
echo "Spell check failed! See above for details."
141144
exit 1
@@ -144,7 +147,7 @@ jobs:
144147
- name: Check for existing comment
145148
if: |
146149
github.event_name == 'pull_request' &&
147-
steps.spellcheck.outputs.spell_failed == '1'
150+
steps.spellcheck.outputs.spell_failed == 'true'
148151
uses: actions/github-script@v6
149152
id: find-comment
150153
with:
@@ -166,11 +169,13 @@ jobs:
166169
- name: Post or update spell check comment
167170
if: |
168171
github.event_name == 'pull_request' &&
169-
steps.spellcheck.outputs.spell_failed == '1'
172+
steps.spellcheck.outputs.spell_failed == 'true'
170173
uses: actions/github-script@v6
171174
with:
172175
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+
174179
const message = `Spellcheck has failed. Please review the log and address the issues.
175180
176181
Here are a few tips:

0 commit comments

Comments
 (0)