Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf97678a

Browse files
committed
run padpoes in github actions workflow
1 parent59407f9 commitf97678a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

‎.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
runs-on:ubuntu-latest
1313
steps:
1414
-uses:actions/checkout@v2
15+
-uses:lots0logs/gh-action-get-changed-files@2.1.4
16+
id:changed_files
17+
with:
18+
token:${{ secrets.GITHUB_TOKEN }}
1519
-name:Preparar Python v3.10
1620
uses:actions/setup-python@v2
1721
with:
@@ -32,5 +36,18 @@ jobs:
3236
-name:Pospell
3337
run:|
3438
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
3552
-name:Construir documentación
3653
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

‎padpoes.ignore

Whitespace-only changes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp