From 313a610671f83eb764f2a77a786744adae1368c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Mon, 19 Feb 2024 21:22:31 +0100 Subject: [PATCH] Add GitHub action for translation fixes --- .github/workflows/fix_translations.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/fix_translations.yml diff --git a/.github/workflows/fix_translations.yml b/.github/workflows/fix_translations.yml new file mode 100644 index 000000000..40afc9e06 --- /dev/null +++ b/.github/workflows/fix_translations.yml @@ -0,0 +1,21 @@ +name: Fix translations +on: + pull_request: + workflow_dispatch: +jobs: + i18n-fixes: + name: Fix translated files + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - name: Checkout the latest commit + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - name: Run translation fixes script + run: sh .github/scripts/fix-i18n.sh + - name: Commit changes + run: | + git config --global user.name github-actions + git config --global user.email github-actions@github.com + git commit -am "Fix translated files" + git push