File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,31 @@ jobs:
41
41
run : |
42
42
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
43
43
44
- # Build and prepare translations
44
+ # Build translations
45
45
- name : Build Crowdin project
46
- run : npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/translations/triggerBuild.ts
46
+ id : build-crowdin
47
+ run : |
48
+ OUTPUT=$(npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/translations/triggerBuild.ts)
49
+ echo "$OUTPUT"
50
+ shell : bash
47
51
48
52
- name : Await latest build to finish
49
- run : npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/translations/awaitLatestBuild.ts
53
+ env :
54
+ BUILD_ID : ${{ steps.build-crowdin.outputs.buildId}}
55
+ run : |
56
+ OUTPUT=$(npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/translations/awaitLatestBuild.ts)
57
+ echo "$OUTPUT"
58
+ shell : bash
59
+
60
+ - name : Check build success
61
+ run : |
62
+ if [ "${{ steps.build-crowdin.outputs.buildSuccess }}" = "false" ]; then
63
+ echo "Build timed out, exiting"
64
+ exit 1
65
+ fi
66
+ shell : bash
50
67
68
+ # Prepare bucket ids
51
69
- name : Get latest translation bucket directory ids
52
70
run : npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/translations/getBucketDirectoryIds.ts
53
71
You can’t perform that action at this time.
0 commit comments