File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
generate_translators :
11
- # if: github.event.repository.fork == false
11
+ if : github.event.repository.fork == false
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- name : Checkout code
15
15
uses : actions/checkout@v4
16
16
with :
17
17
fetch-depth : 0
18
18
ref : master
19
+
19
20
- name : Setup Node.js
20
21
uses : actions/setup-node@v4
21
22
with :
22
23
node-version : latest
23
24
cache : ' npm'
24
25
cache-dependency-path : ./utils/localization/generate-translators/package-lock.json
26
+
25
27
- name : Install dependencies
26
28
working-directory : ./utils/localization/generate-translators
27
29
run : npm clean-install
30
+
28
31
- name : Generate translators
29
32
working-directory : ./utils/localization/generate-translators
30
33
env :
33
36
CROWDIN_PROJECT_ID : " 13" # Multi Theft Auto
34
37
CROWDIN_IGNORE_USER_ID : " 2" # multitheftautoqa
35
38
run : npm run ci
39
+
36
40
- name : Commit changes
37
41
env :
38
42
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
47
git add ./utils/localization/generate-translators/crowdin-translators.json
44
48
45
49
if ! git diff-index --quiet HEAD; then
46
- git commit -m "Update crowdin-translators.json"
50
+ git commit -m "Update crowdin-translators.json" -m "[ci skip]"
47
51
git push
48
52
fi
You can’t perform that action at this time.
0 commit comments