42 lines (37 loc) · 1.4 KB
/
crowdin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Crowdin Action
on:
push:
paths:
- 'apps/app/public/locales/en/*.json'
concurrency:
group: ${{ github.workflow }}-${{ github.event.ref || github.ref }}
cancel-in-progress: true
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Remove Jira ticket ID from branch name
id: branchregex
uses: ashley-taylor/regex-property-action@eeec905bf940ec1c65ff777402c57f786368d9bc # v1.4
with:
value: ${{ github.ref_name }}
regex: IN-\d+
flags: gi
replacement: IN-xxx
- name: crowdin action
uses: crowdin/github-action@6db87d404b6a13cd118070f9af29957aa47ee1f3 # 1.5.2
env:
GITHUB_TOKEN: ${{ secrets.GH_ACT_PAT }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
with:
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: ${{ steps.branchregex.outputs.value }}
create_pull_request: true
pull_request_title: 'chore(i18n): Updated translations from Crowdin'
pull_request_labels: "translations, kodiak: merge.method = 'squash'"
pull_request_base_branch_name: ${{ github.ref_name }}
crowdin_branch_name: ${{ github.ref_name }}