Files
wizarr/.github/workflows/i18n-template.yml
dependabot[bot] 670490feb8 Bump actions/setup-python from 6 to 7
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-20 09:08:01 +00:00

34 lines
978 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# .github/workflows/i18n-template.yml
name: refresh-pot
on:
schedule:
- cron: '13 03 * * *' # once a night
workflow_dispatch: {} # manual run
jobs:
pot:
runs-on: ubuntu-24.04
# dont run if the commit came from the Weblate bot
if: github.actor != 'weblate'
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version-file: pyproject.toml
- name: Re-generate POT template
run: |
uv run pybabel extract -F babel.cfg -k _l -o messages.pot .
if ! git diff --quiet messages.pot; then
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add messages.pot
git commit -m "i18n: refresh POT template [skip ci]"
git push
fi