File tree 1 file changed +12
-10
lines changed 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,18 @@ jobs:
22
22
id : changed_files
23
23
with :
24
24
token : ${{ secrets.GITHUB_TOKEN }}
25
- - name : Show changed files
26
- run :
27
- echo '${{ join(fromJSON(steps.changed_files.outputs.all), '\n') }}'
28
- # - name: Install pospell
29
- # run: |
30
- # sudo apt-get update
31
- # sudo apt-get install -y hunspell hunspell-fr-comprehensive
32
- # sudo python3 -m pip install pospell
33
- # - name: Run pospell
34
- # run: pospell -p dict -l fr_FR *.po */*.po
25
+ - name : Install pospell
26
+ run : |
27
+ sudo apt-get update
28
+ sudo apt-get install -y hunspell hunspell-fr-comprehensive
29
+ sudo python3 -m pip install pospell
30
+ - name : Run pospell
31
+ with :
32
+ ADDED_FILES : ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }}
33
+ MODIFIED_FILES : ${{ join(fromJSON(steps.changed_files.outputs.modified), ' ') }}
34
+ run : |
35
+ CHANGED_PO_FILES=$(printf "%s %s\n" "$ADDED_FILES" "$MODIFIED_FILES" | tr ' ' '\n' | grep '.po$')
36
+ [ -n "$CHANGED_PO_FILES" ] && pospell -p dict -l fr_FR $CHANGED_PO_FILES
35
37
36
38
# powrap:
37
39
# name: 'Longueur des lignes (powrap)'
You can’t perform that action at this time.
0 commit comments