Crowdin GitHub actions test

This commit is contained in:
jvyden 2022-08-12 20:21:54 -04:00
parent 4edf220ee6
commit 80f025c913
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
2 changed files with 33 additions and 0 deletions

30
.github/workflows/crowdin-sync.yml vendored Normal file
View file

@ -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 }}

View file

@ -1,3 +1,6 @@
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN
preserve_hierarchy: true preserve_hierarchy: true
files: files:
- source: /ProjectLighthouse.Localization/*.resx - source: /ProjectLighthouse.Localization/*.resx