Skip to content

Commit 67f313d

Browse files
authored
Update check.yml
1 parent 90fb5fa commit 67f313d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/check.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,16 @@ jobs:
231231
232232
# Run a per-directory, group-separated spellcheck
233233
- name: Check spelling
234-
working-directory: cpython/Doc/locales/pt_BR/LC_MESSAGES
235234
continue-on-error: true
236235
run: |
237-
wd=$PWD
236+
check_spell=$PWD/scripts/check_spell.py
237+
langdir=$PWD/cpython/Doc/locales/pt_BR/LC_MESSAGES
238+
cd $langdir
238239
dirs=". $(find * -type d | sort)"
239240
for dir in $dirs; do
240241
echo "::group::{$dir}"
241-
cd $wd/$dir
242+
cd $langdir/$dir
242243
po_files=$(find -maxdepth 1 -name '*.po' | sort)
243-
python ../../../../../scripts/check_spell.py $po_files || :
244+
python $check_spell $po_files || :
244245
echo "::endgroup::"
245246
done

0 commit comments

Comments
 (0)