mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-08-29 20:13:13 +00:00
Its `paths` filter listed `i18n/**` but not the workflow file, so a change to the workflow - an action bump, say - triggered nothing. Those bumps automerge on a branch, so they were merging with nothing having run them. The Molecule workflow already lists itself for this reason. `update-translations.yml` cannot do the same: it only runs on pushes to master, and it holds `contents: write` and `pull-requests: write` to open translation PRs, so running it from a dependency branch would be worse than not exercising it. Its bumps stay unexercised on purpose, and a broken one shows up as a failed translations run rather than as anything users see. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SEH3vxYSQ5SV4N5z61eyGT
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
# SPDX-FileCopyrightText: 2026 Slavi Pantaleev
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
---
|
|
name: Matrix i18n
|
|
|
|
# Exercises the translation toolchain whenever something under i18n/ changes,
|
|
# so that a dependency bump which breaks Sphinx/Babel fails here - before it
|
|
# gets merged - rather than in the next scheduled translations run.
|
|
on: # yamllint disable-line rule:truthy
|
|
push:
|
|
paths:
|
|
- "i18n/**"
|
|
- ".github/workflows/i18n.yml"
|
|
pull_request:
|
|
paths:
|
|
- "i18n/**"
|
|
- ".github/workflows/i18n.yml"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
extract-translation-templates:
|
|
name: Extract translation templates
|
|
runs-on: ubuntu-24.04
|
|
|
|
# Same-repository pull requests already run via the push event;
|
|
# run pull_request jobs only for pull requests from forks.
|
|
if: >-
|
|
github.event_name != 'pull_request'
|
|
|| github.event.pull_request.head.repo.full_name != github.repository
|
|
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
|
|
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
|
|
with:
|
|
python-version: '3.14'
|
|
|
|
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
|
|
|
|
- uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4
|
|
|
|
- name: Extract translation catalog templates (POT) files
|
|
run: just --justfile i18n/justfile extract-translation-templates
|