Skip to content

Commit 87f99db

Browse files
committed
run padpoes in github actions workflow
1 parent ff93d2c commit 87f99db

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/main.yml

+17
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
steps:
1414
- uses: actions/checkout@v2
15+
- uses: lots0logs/[email protected]
16+
id: changed_files
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}
1519
- name: Preparar Python v3.11
1620
uses: actions/setup-python@v2
1721
with:
@@ -35,6 +39,19 @@ jobs:
3539
- name: Pospell
3640
run: |
3741
python scripts/check_spell.py
42+
- name: Padpoes
43+
env:
44+
ADDED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }}
45+
MODIFIED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.modified), ' ') }}
46+
run: |
47+
CHANGED_PO_FILES=$(printf "%s %s\n" "$ADDED_FILES" "$MODIFIED_FILES" | tr ' ' '\n' | grep '.po$'; true)
48+
if [ -n "$CHANGED_PO_FILES" ]
49+
then
50+
echo "Running on:" $CHANGED_PO_FILES
51+
padpoes -i $CHANGED_PO_FILES 2>&1 | grep -v -Ff padpoes.ignore
52+
else
53+
echo "No changed po files, nothing to check."
54+
fi
3855
- name: Construir documentación
3956
run: |
4057
# FIXME: Relative paths for includes in 'cpython'

padpoes.ignore

Whitespace-only changes.

0 commit comments

Comments
 (0)