-
Notifications
You must be signed in to change notification settings - Fork 257
45 lines (37 loc) · 1.18 KB
/
crowdin-upload-workflow.yml
File metadata and controls
45 lines (37 loc) · 1.18 KB
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
45
name: Crowdin Upload Action
on:
workflow_call:
workflow_dispatch:
# schedule:
# - cron: "20 13,17,21 * * 1,2,3,4,5" # Runs at 20 minutes past beginning/middle/end of day Mon-Fri (UTC-6)
jobs:
crowdin-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout Docs Repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "yarn"
cache-dependency-path: "**/yarn.lock"
- name: Install Dependencies
run: yarn --prefer-offline --frozen-lockfile
- name: Generate CLI Docs
run: yarn stellar-cli:build
- name: (temp) Fix CLI links
run: yarn stellar-cli:fix-links
shell: bash
- name: Write Translations
run: yarn write-translations
- name: Crowdin push
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: false
download_translations: false
upload_sources_args: --delete-obsolete
env:
CROWDIN_PROJECT_ID: ${{ env.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}