2021-09-02 22:05:17 +02:00
|
|
|
---
|
2021-11-04 19:15:29 +01:00
|
|
|
name: Crowdin Pull
|
2021-07-26 16:53:35 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs: {}
|
2021-11-04 19:15:29 +01:00
|
|
|
schedule:
|
2021-12-17 15:57:11 +01:00
|
|
|
- cron: "0 0 * * 5"
|
2021-07-26 16:53:35 +02:00
|
|
|
|
|
|
|
jobs:
|
2021-11-04 19:15:29 +01:00
|
|
|
crowdin-pull:
|
|
|
|
name: Pull
|
2021-07-26 16:53:35 +02:00
|
|
|
runs-on: ubuntu-20.04
|
2021-08-11 18:01:29 +02:00
|
|
|
env:
|
2021-08-24 20:58:34 +02:00
|
|
|
_CROWDIN_PROJECT_ID: "308189"
|
2021-07-26 16:53:35 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
2021-12-17 15:57:11 +01:00
|
|
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
2021-07-26 16:53:35 +02:00
|
|
|
|
|
|
|
- name: Login to Azure
|
|
|
|
uses: Azure/login@77f1b2e3fb80c0e8645114159d17008b8a2e475a
|
|
|
|
with:
|
|
|
|
creds: ${{ secrets.AZURE_PROD_KV_CREDENTIALS }}
|
|
|
|
|
|
|
|
- name: Retrieve secrets
|
|
|
|
id: retrieve-secrets
|
|
|
|
uses: Azure/get-keyvault-secrets@80ccd3fafe5662407cc2e55f202ee34bfff8c403
|
|
|
|
with:
|
|
|
|
keyvault: "bitwarden-prod-kv"
|
|
|
|
secrets: "crowdin-api-token"
|
|
|
|
|
2021-08-27 19:08:26 +02:00
|
|
|
- name: Download translations
|
2021-12-17 15:57:11 +01:00
|
|
|
uses: crowdin/github-action@e39093fd75daae7859c68eded4b43d42ec78d8ea # v1.3.2
|
2021-08-11 18:01:29 +02:00
|
|
|
env:
|
2021-07-26 16:53:35 +02:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-08-27 19:08:26 +02:00
|
|
|
CROWDIN_API_TOKEN: ${{ steps.retrieve-secrets.outputs.crowdin-api-token }}
|
|
|
|
with:
|
|
|
|
config: crowdin.yml
|
|
|
|
crowdin_branch_name: master
|
|
|
|
upload_sources: false
|
|
|
|
upload_translations: false
|
|
|
|
download_translations: true
|
|
|
|
github_user_name: "github-actions"
|
|
|
|
github_user_email: "<>"
|
|
|
|
commit_message: "Autosync the updated translations"
|
|
|
|
localization_branch_name: crowdin-auto-sync
|
|
|
|
create_pull_request: true
|
|
|
|
pull_request_title: "Autosync Crowdin Translations"
|
|
|
|
pull_request_body: "Autosync the updated translations"
|