File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v2
15
+ -
uses :
lots0logs/[email protected]
16
+ id : changed_files
17
+ with :
18
+ token : ${{ secrets.GITHUB_TOKEN }}
15
19
- name : Preparar Python v3.10
16
20
uses : actions/setup-python@v2
17
21
with :
32
36
- name : Pospell
33
37
run : |
34
38
python scripts/check_spell.py
39
+ - name : Padpoes
40
+ env :
41
+ ADDED_FILES : ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }}
42
+ MODIFIED_FILES : ${{ join(fromJSON(steps.changed_files.outputs.modified), ' ') }}
43
+ run : |
44
+ CHANGED_PO_FILES=$(printf "%s %s\n" "$ADDED_FILES" "$MODIFIED_FILES" | tr ' ' '\n' | grep '.po$'; true)
45
+ if [ -n "$CHANGED_PO_FILES" ]
46
+ then
47
+ echo "Running on:" $CHANGED_PO_FILES
48
+ padpo -i $CHANGED_PO_FILES 2>&1 | grep -v -Ff padpoes.ignore
49
+ else
50
+ echo "No changed po files, nothing to check."
51
+ fi
35
52
- name : Construir documentación
36
53
run : PYTHONWARNINGS=ignore::FutureWarning sphinx-build -j auto -W --keep-going -b html -d cpython/Doc/_build/doctree -D language=es . cpython/Doc/_build/html
You can’t perform that action at this time.
0 commit comments