-
-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (37 loc) · 1.27 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
41
42
43
44
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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: "main"
- name: Set environment variables
id: set-secrets
run: |
echo "CROWDIN_PROJECT_ID=${{ secrets.CROWIN_PROJECT_ID }}" >> $GITHUB_ENV
echo "CROWDIN_API_TOKEN=${{ secrets.CROWDIN_TOKEN_THING }}" >> $GITHUB_ENV
- 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]
- name: Debug - check directory
run: ls