Skip to content

Commit 08ff149

Browse files
committed
run padpoes in github actions workflow
1 parent ff93d2c commit 08ff149

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
steps:
1414
- uses: actions/checkout@v2
15+
- name: Register problem matchers
16+
run: echo "::add-matcher::.github/problem-matchers/pospell.json"
17+
- uses: lots0logs/gh-action-get-changed-files@2.1.4
18+
id: changed_files
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
1521
- name: Preparar Python v3.11
1622
uses: actions/setup-python@v2
1723
with:
@@ -35,6 +41,19 @@ jobs:
3541
- name: Pospell
3642
run: |
3743
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
3857
- name: Construir documentación
3958
run: |
4059
# FIXME: Relative paths for includes in 'cpython'

padpoes.ignore

Whitespace-only changes.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy