Skip to content

Bump actions/upload-artifact from 5 to 6 #1021

Bump actions/upload-artifact from 5 to 6

Bump actions/upload-artifact from 5 to 6 #1021

Workflow file for this run

name: Weblate syntax check
on: [pull_request, push]
jobs:
translate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install translate-toolkit
run: |
python -m pip install --upgrade pip
pip install translate-toolkit
- name: Install gettext (cached)
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: gettext
version: 1.0
- name: Run html2po
# This is written so complex because at the time of writing (2024-02-28) it always returns 0.
run: |
html2po user_guide/en.html 2>&1 | grep Error && exit 1 || exit 0
- name: Run msgfmt --check
run: |
find i18n/po -name '*.po' -print0 \
| xargs -0 -r -n1 sh -c 'echo "Checking: $1"; msgfmt --check "$1"' _