-
Notifications
You must be signed in to change notification settings - Fork 1.5k
39 lines (35 loc) · 1.02 KB
/
update-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
name: Update i18n
on:
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
schedule:
- cron: 0 0 * * * # daily at midnight UTC = 7-8pm US Eastern
concurrency:
group: '${{ github.workflow }}'
cancel-in-progress: true
permissions:
contents: write
jobs:
ci-cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
cache: 'npm'
node-version-file: '.nvmrc'
- name: Info
run: |
cat <<EOF
Node version: $(node --version)
NPM version: $(npm --version)
GitHub ref: ${{ github.ref }}
GitHub head ref: ${{ github.head_ref }}
EOF
- name: Setup
run: npm ci
- name: Extract translations
run: npm run i18n:src
- name: Push translations
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
run: npm run i18n:push