Skip to content

Commit

Permalink
Add Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
camyyssa committed Aug 28, 2024
1 parent 6a2084a commit 9c5e108
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: crowdin-translations

on:
workflow_dispatch:
schedule:
- cron: 0 * * * *
workflow_call:
secrets:
TOKEN_FOR_GITHUB_CREATE_BRANCHES:
required: true

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

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

- name: crowdin-sync-translations
uses: crowdin/github-action@v2
with:
config: './crowdin.yml'
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: translations
create_pull_request: true
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: 'develop'
import_eq_suggestions: true
skip_untranslated_strings: true
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_GITHUB_CREATE_BRANCHES }}

0 comments on commit 9c5e108

Please sign in to comment.