Crowdin #623
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow that syncronizes translations from Crowdin | |
name: Crowdin | |
on: | |
# Check for updates every day | |
schedule: | |
# Everyday at 01:12 | |
- cron: '12 1 * * *' | |
# Sync when a commit is done on the reference branches | |
push: | |
branches: ["lts-2021"] | |
paths: | |
- 'nuxeo-retention-web/i18n/messages.json' | |
jobs: | |
crowdin: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Crowdin Action | |
uses: crowdin/[email protected] | |
with: | |
# Tokens | |
project_id: ${{ secrets.CROWDIN_PROJECT_ID }} | |
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | |
# Load external configuration file (to support translation rename) | |
config: crowdin-conf.yml | |
# Upload sources for translation | |
upload_sources: true | |
# Auto-approve reference sentences we are pushing (english) | |
auto_approve_imported: true | |
# Name of the branch where to merge the translations | |
localization_branch_name: crowdin-translations-update | |
create_pull_request: true | |
pull_request_reviewers: 'manonlumeau' | |
# Automatically download all the new translations | |
download_translations: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |