generated from Open-Science-Community-Saudi-Arabia/Template
-
Notifications
You must be signed in to change notification settings - Fork 36
38 lines (33 loc) · 944 Bytes
/
merge_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
name: Extract and compile translation
on:
pull_request_target:
types:
- closed
branches:
- "main"
jobs:
if_merged:
if: github.event.pull_request.head.ref == 'l10n_main' && github.event.pull_request.merged == true
name: Enter client directory
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- name: Update source code
run: |
npm run extract
npm run compile
- name: Commit report
run: |
git config --global user.name 'Your Name'
git config --global user.email '[email protected]'
git add -A
git commit -am "Translation compiled and extracted"
git push