mirror of
https://github.com/suitenumerique/messages.git
synced 2026-09-11 20:37:45 +02:00
The `synchronize-with-crowdin` was not working since we add the msg-import s3 storage.
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
name: Update crowdin sources
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
|
|
synchronize-with-crowdin:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DJANGO_CONFIGURATION: Build
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
# Backend i18n
|
|
- name: Create env files
|
|
run: make create-env-files
|
|
- name: Generate source translations
|
|
run: make front-install-frozen
|
|
- name: Generate source translations
|
|
run: make i18n-generate
|
|
- name: crowdin action
|
|
uses: crowdin/github-action@v2
|
|
with:
|
|
config: crowdin/config.yml
|
|
upload_sources: true
|
|
upload_translations: true
|
|
# Upload french translations only as we want to translate this language during dev
|
|
upload_language: fr
|
|
download_translations: false
|
|
create_pull_request: false
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
# A numeric ID, found at https://crowdin.com/project/<projectName>/tools/api
|
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
|
|
# Visit https://crowdin.com/settings#api-key to create this token
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
|
|
|
CROWDIN_BASE_PATH: "../src/"
|