Skip to content

Commit

Permalink
feat: add crowdin to github flow
Browse files Browse the repository at this point in the history
  • Loading branch information
ElJocho committed Apr 16, 2024
1 parent aa9ea06 commit dfd729d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/crowdin-to-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Crowdin To GitHub

on:
workflow_dispatch:
schedule:
- cron: '15 * * * *' # sync every hour

jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Sync Crowdin to Github
uses: crowdin/github-action@v1.19.0
with:
upload_sources: false
upload_translations: false
download_translations: true
localization_branch_name: i18n_crowdin
create_pull_request: true
push_sources: false
pull_request_title: 'New Crowdin Translations'
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
pull_request_base_branch_name: 'main'
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit dfd729d

Please sign in to comment.