Skip to content

Commit cc48707

Browse files
committed
ci: move crowdin workflow to a job in testing
1 parent a97aa01 commit cc48707

2 files changed

Lines changed: 30 additions & 42 deletions

File tree

.github/workflows/crowdin-actions.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/testing.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,33 @@ jobs:
135135
if: github.event.repository.fork == false && failure()
136136
with:
137137
title: "Build apk"
138-
webhook: ${{ secrets.DISCORD_BUILD_STATUS_WEBHOOK }}
138+
webhook: ${{ secrets.DISCORD_BUILD_STATUS_WEBHOOK }}
139+
140+
synchronize-with-crowdin:
141+
runs-on: ubuntu-latest
142+
143+
steps:
144+
- name: Checkout
145+
uses: actions/checkout@v4
146+
147+
- name: crowdin action
148+
uses: crowdin/github-action@v2
149+
if: github.event.repository.fork == false
150+
with:
151+
upload_sources: true
152+
upload_translations: false
153+
download_translations: true
154+
localization_branch_name: l10n/develop
155+
create_pull_request: true
156+
pull_request_title: 'New Crowdin Translations'
157+
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
158+
pull_request_base_branch_name: 'develop'
159+
env:
160+
# A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository).
161+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
162+
163+
# A numeric ID, found at https://crowdin.com/project/<projectName>/tools/api
164+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
165+
166+
# Visit https://crowdin.com/settings#api-key to create this token
167+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 commit comments

Comments
 (0)