From 0bf6acb8864a4e28f570fb800745ec35d372e830 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Fri, 10 Sep 2021 14:31:37 +0800 Subject: [PATCH] [skip ci] Add Crowdin action (#1091) --- .github/workflows/crowdin.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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 00000000..e269ac7f --- /dev/null +++ b/.github/workflows/crowdin.yml @@ -0,0 +1,26 @@ +name: Crowdin Action + +on: + workflow_dispatch: + push: + branches: [ master ] + paths: + - app/src/main/res/values/strings.xml + +jobs: + synchronize-with-crowdin: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: crowdin action + uses: crowdin/github-action@1.0.4 + with: + upload_translations: false + download_translations: false + upload_sources: true + config: 'crowdin.yml' + env: + CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} + CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}