Skip to content

Commit 73ed068

Browse files
committed
ci: Add GitHub Actions workflow for Crowdin translation synchronization.
1 parent e20accd commit 73ed068

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/crowdin-sync.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
token: ${{ secrets.CROWDIN_API_TOKEN }}
3636

3737
- name: Crowdin pull (download translations)
38+
id: crowdin_pull
3839
uses: crowdin/github-action@v2
3940
with:
4041
upload_sources: false
@@ -51,3 +52,9 @@ jobs:
5152
token: ${{ secrets.CROWDIN_API_TOKEN }}
5253
env:
5354
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
56+
- name: Enable Pull Request Automerge
57+
if: steps.crowdin_pull.outputs.pull_request_number != ''
58+
run: gh pr merge "${{ steps.crowdin_pull.outputs.pull_request_number }}" --auto --merge
59+
env:
60+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)