# Base CI template which is called from i18n-ci-pr.yml name: i18n CI Template on: workflow_call: jobs: check-files: name: Check only English translation files changed runs-on: ubuntu-22.04 if: github.event.pull_request.user.login != 'weblate' # Allow weblate to modify non-English steps: - name: Checkout code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Get changed files id: changed-files uses: tj-actions/changed-files@dcc7a0cba800f454d79fff4b993e8c3555bcc0a8 # v45.0.7 with: files: | server/i18n/*.json webapp/channels/src/i18n/*.json !server/i18n/en.json !webapp/channels/src/i18n/en.json - name: Check changed files if: steps.changed-files.outputs.any_changed == 'true' run: | echo "::error title=Non-English i18n files changed::Only PRs from weblate should modify non-English translation files." exit 1