File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,15 @@ jobs:
60
60
echo ".cache.json" >> dist/.gitignore
61
61
62
62
- name : Update
63
- run : npm run build
64
63
env :
65
- CONTRIBKIT_CROWDIN_PROJECT_ID : 606145
66
64
CONTRIBKIT_GITHUB_TYPE : organization
65
+ run : npm run build
67
66
68
67
- name : Upload artifacts
69
68
if : github.event_name == 'pull_request'
70
69
uses : actions/upload-artifact@v4
71
70
with :
72
- name : sponsors
71
+ name : dist
73
72
path : dist
74
73
if-no-files-found : ' error'
75
74
83
82
branch : dist
84
83
directory : dist
85
84
force : false
86
- message : " chore: update sponsors "
85
+ message : " chore: update contributors "
Original file line number Diff line number Diff line change 4
4
" Sunshine"
5
5
)
6
6
7
+ crowdin_projects=(
8
+ 606145
9
+ 614257
10
+ )
11
+
7
12
output_dir=" $( pwd) /dist"
8
13
9
14
echo " Building sponsors..."
@@ -16,18 +21,20 @@ popd || exit 1
16
21
17
22
echo " Building GitHub contributors..."
18
23
pushd configs/github || exit 1
19
-
20
24
for repo in " ${repos[@]} " ; do
21
25
echo " Building GitHub contributors for ${repo} ..."
22
26
export CONTRIBKIT_GITHUB_CONTRIBUTORS_REPO=" ${repo} "
23
27
npx contribkit --outputDir=" ${output_dir} " -w=800 --name=" github.${repo} " --force
24
28
done
25
-
26
29
popd || exit 1
27
30
28
31
echo " Building CrowdIn contributors..."
29
32
pushd configs/crowdin || exit 1
30
- npx contribkit --outputDir=" ${output_dir} " -w=800 --name=crowdin --force
33
+ for project in " ${crowdin_projects[@]} " ; do
34
+ echo " Building CrowdIn contributors for project ${project} ..."
35
+ export CONTRIBKIT_CROWDIN_PROJECT_ID=" ${project} "
36
+ npx contribkit --outputDir=" ${output_dir} " -w=800 --name=" crowdin.${project} " --force
37
+ done
31
38
popd || exit 1
32
39
33
40
echo " Done!"
You can’t perform that action at this time.
0 commit comments