This repository has been archived by the owner on Nov 19, 2023. It is now read-only.
Crowdin Action #175
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: Crowdin Action | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
synchronize-with-crowdin: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Sync translations | |
uses: crowdin/github-action@v1 | |
with: | |
source: '/**/locales/en/*.po' | |
translation: '/**/locales/%two_letters_code%/%original_file_name%' | |
upload_sources: true | |
upload_translations: true | |
download_translations: true | |
localization_branch_name: i18n_crowdin_translations | |
create_pull_request: true | |
pull_request_title: 'chore(i18n): sync translations' | |
pull_request_body: 'New Crowdin translations by Crowdin GH Action' | |
commit_message: 'chore(i18n): sync translations' | |
pull_request_assignees: 'sasicodes' | |
pull_request_reviewers: 'sasicodes' | |
project_id: ${{ secrets.CROWDIN_PROJECT_ID }} | |
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |