-
-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (34 loc) · 1.16 KB
/
auto-i18n.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
name: Update Crowdin strings bi-directionally
run-name: Update from Crowdin
on:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-from-crowdin:
name: Update strings from Crowdin
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: "main"
- name: Grab strings from Crowdin
uses: crowdin/[email protected]
with: # this was pain --KTrain
upload_sources: true
download_translations: true
localization_branch_name: auto-i18n-branch
create_pull_request: true
pull_request_title: (Crowdin Action) New translation strings
pull_request_body: New translated strings are now available!
pull_request_base_branch_name: "main"
github_user_name: Crowdin Bot (Actions)
github_user_email: [email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_TOKEN_THING }}
- name: Debug - check directory
run: ls