Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
run padpoes in github actions workflow
  • Loading branch information
brunildisimo committed Oct 31, 2022
commit 08ff1491a5281cded59a2d2828797551a4359ff2
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Register problem matchers
run: echo "::add-matcher::.github/problem-matchers/pospell.json"
- uses: lots0logs/gh-action-get-changed-files@2.1.4
id: changed_files
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Preparar Python v3.11
uses: actions/setup-python@v2
with:
Expand All @@ -35,6 +41,19 @@ jobs:
- name: Pospell
run: |
python scripts/check_spell.py
- name: Padpoes
env:
ADDED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }}
MODIFIED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.modified), ' ') }}
run: |
CHANGED_PO_FILES=$(printf "%s %s\n" "$ADDED_FILES" "$MODIFIED_FILES" | tr ' ' '\n' | grep '.po$'; true)
if [ -n "$CHANGED_PO_FILES" ]
then
echo "Running on:" $CHANGED_PO_FILES
padpoes -i $CHANGED_PO_FILES 2>&1 | grep -v -Ff padpoes.ignore
else
echo "No changed po files, nothing to check."
fi
- name: Construir documentación
run: |
# FIXME: Relative paths for includes in 'cpython'
Expand Down
Empty file added padpoes.ignore
Empty file.