mirror of
https://github.com/wizarrrr/wizarr.git
synced 2026-07-31 07:17:10 -04:00
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>
34 lines
978 B
YAML
34 lines
978 B
YAML
# .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
|
||
# don’t 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
|