File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-22.04
13
13
steps :
14
14
- uses : actions/checkout@v2
15
+ - name : Register problem matchers
16
+ run : echo "::add-matcher::.github/problem-matchers/pospell.json"
17
+
18
+ id : changed_files
19
+ with :
20
+ token : ${{ secrets.GITHUB_TOKEN }}
15
21
- name : Preparar Python v3.11
16
22
uses : actions/setup-python@v2
17
23
with :
35
41
- name : Pospell
36
42
run : |
37
43
python scripts/check_spell.py
44
+ - name : Padpoes
45
+ env :
46
+ ADDED_FILES : ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }}
47
+ MODIFIED_FILES : ${{ join(fromJSON(steps.changed_files.outputs.modified), ' ') }}
48
+ run : |
49
+ CHANGED_PO_FILES=$(printf "%s %s\n" "$ADDED_FILES" "$MODIFIED_FILES" | tr ' ' '\n' | grep '.po$'; true)
50
+ if [ -n "$CHANGED_PO_FILES" ]
51
+ then
52
+ echo "Running on:" $CHANGED_PO_FILES
53
+ padpoes -i $CHANGED_PO_FILES 2>&1 | grep -v -Ff padpoes.ignore
54
+ else
55
+ echo "No changed po files, nothing to check."
56
+ fi
38
57
- name : Construir documentación
39
58
run : |
40
59
# FIXME: Relative paths for includes in 'cpython'
You can’t perform that action at this time.
0 commit comments