From 80f025c9130aaeaf10896858bbd36d7b93feae0d Mon Sep 17 00:00:00 2001 From: jvyden Date: Fri, 12 Aug 2022 20:21:54 -0400 Subject: [PATCH] Crowdin GitHub actions test --- .github/workflows/crowdin-sync.yml | 30 ++++++++++++++++++++++++++++++ crowdin.yml | 3 +++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/crowdin-sync.yml diff --git a/.github/workflows/crowdin-sync.yml b/.github/workflows/crowdin-sync.yml new file mode 100644 index 00000000..61f08221 --- /dev/null +++ b/.github/workflows/crowdin-sync.yml @@ -0,0 +1,30 @@ +on: + schedule: + - cron: "*/60 * * * *" + +name: Crowdin Sync + +jobs: + crowdin-sync: + runs-on: ubuntu-latest + + - name: Checkout + uses: actions/checkout@v2 + + steps: + - name: crowdin-action + uses: crowdin/github-action@1.4.11 + with: + upload_translations: true + download_translations: true + export_only_approved: true + push_translations: true + commit_message: 'Update the localization files' + localization_branch_name: translations + create_pull_request: true + pull_request_title: 'Update the localization files' + pull_request_body: 'These are the newest translations from [Crowdin](https://crowdin.com/project/project-lighthouse)' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} + CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} diff --git a/crowdin.yml b/crowdin.yml index 2e6c5d14..28f6324e 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,3 +1,6 @@ +project_id_env: CROWDIN_PROJECT_ID +api_token_env: CROWDIN_PERSONAL_TOKEN + preserve_hierarchy: true files: - source: /ProjectLighthouse.Localization/*.resx