Sync Crowdin #132
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 | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'app/src/main/res/values/strings.xml' | |
- '.github/workflows/crowdin.yml' | |
schedule: | |
- cron: "0 17 * * 6" # "At 17:00 on Saturday." | |
workflow_dispatch: | |
jobs: | |
sync-crowdin: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Crowdin | |
uses: crowdin/[email protected] | |
with: | |
config: crowdin.yml | |
upload_translations: true | |
download_translations: true | |
push_translations: true | |
create_pull_request: false | |
localization_branch_name: l10n | |
commit_message: 'chore(i18n): sync translations' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_ID }} | |
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_TOKEN }} | |
- name: Merge | |
run: | | |
sudo chmod -R ugo+rwX . | |
git checkout main | |
git add * | |
git merge l10n | |
git push |