From fefc0d240570c99b4518dec962f1a81c1c2c7cc8 Mon Sep 17 00:00:00 2001 From: amsyarasyiq <82711525+amsyarasyiq@users.noreply.github.com> Date: Tue, 5 Mar 2024 22:18:53 +0800 Subject: [PATCH] i18n repo sync --- .github/workflows/crowdin.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/crowdin.yml diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml new file mode 100644 index 0000000..4dded65 --- /dev/null +++ b/.github/workflows/crowdin.yml @@ -0,0 +1,32 @@ +name: Sync with I18n repository + +on: + push: + branches: + - 'main' + paths: + - 'src/core/i18n/default.json' + workflow_dispatch: + +jobs: + sync: + name: Synchronize strings + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + with: + repository: "amsyarasyiq/voyager" + path: "main" + token: ${{ secrets.PYLIX_TOKEN }} + + - name: Push + run: | + cp src/core/i18n/default.json $GITHUB_WORKSPACE/main/base/bunny.json + cd $GITHUB_WORKSPACE/main + git config --local user.email "actions@github.com" + git config --local user.name "GitHub Actions" + git add . + git commit -m "Strings update from Bunny" || exit 0 + git push