From 2684216a308823db3230123da097381a10bfa817 Mon Sep 17 00:00:00 2001 From: Rushaway Date: Wed, 30 Sep 2026 10:08:01 +0200 Subject: [PATCH] ci: check translations with smtranslate Co-Authored-By: Claude Opus 5.5 --- .github/workflows/translations.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/translations.yml diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml new file mode 100644 index 000000000..e7e74ebab --- /dev/null +++ b/.github/workflows/translations.yml @@ -0,0 +1,24 @@ +name: Translations + +on: + push: + paths: + - "game/addons/sourcemod/translations/**" + - ".github/workflows/translations.yml" + pull_request: + paths: + - "game/addons/sourcemod/translations/**" + - ".github/workflows/translations.yml" + workflow_dispatch: + +jobs: + check: + name: Translations + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: srcdslab/smtranslate@v1 + with: + path: game/addons/sourcemod/translations + # Set the TRANSLATIONS_FAIL_ON repository variable to "warning" to make warnings blocking + fail-on: ${{ vars.TRANSLATIONS_FAIL_ON || 'error' }}