Sync Crowdin with eXo Mobile Project #1102
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
name: Sync Crowdin with eXo Mobile Project | |
on: | |
schedule: | |
- cron: '0 18 * * *' # Everyday at 06 PM UTC | |
workflow_dispatch: | |
workflow_call: | |
env: | |
CROWDIN_SYNC_BRANCH: 'integration/6.2.x' | |
BASE_BRANCH: 'acceptance' | |
jobs: | |
synchronize-with-crowdin: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ env.BASE_BRANCH }} | |
fetch-depth: 0 | |
- name: Mark workspace as safe folder | |
run: git config --global --add safe.directory /github/workspace | |
- name: Synchronize crowdin with the project | |
uses: crowdin/[email protected] | |
with: | |
upload_translations: false | |
download_translations: true | |
localization_branch_name: ${{ env.CROWDIN_SYNC_BRANCH }} | |
create_pull_request: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | |
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |