Browse Source

chore: add manual trigger for uploading translations

Gerald 5 years ago
parent
commit
9ecdd4b4e4

+ 4 - 3
.github/workflows/ci.yml

@@ -9,7 +9,8 @@ jobs:
     steps:
       - name: Checkout code
         uses: actions/checkout@v2
-      - name: Install deps
-        run: yarn
+      - uses: actions/setup-node@v2-beta
+        with:
+          node-version: '15'
       - name: CI
-        run: yarn ci
+        run: yarn && yarn ci

+ 3 - 0
.github/workflows/transifex-pull-translations.yml

@@ -13,6 +13,9 @@ jobs:
     steps:
       - name: Checkout code
         uses: actions/checkout@v2
+      - uses: actions/setup-node@v2-beta
+        with:
+          node-version: '15'
       - name: Install deps
         run: yarn
       - name: Update translations

+ 3 - 0
.github/workflows/transifex-push-resources.yml

@@ -13,6 +13,9 @@ jobs:
     steps:
       - name: Checkout code
         uses: actions/checkout@v2
+      - uses: actions/setup-node@v2-beta
+        with:
+          node-version: '15'
       - name: Install deps
         run: yarn
       - name: Update locale files

+ 6 - 0
.github/workflows/transifex-push-translations.yml

@@ -1,6 +1,7 @@
 name: Upload translations to Transifex
 
 on:
+  workflow_dispatch:
   pull_request_target:
     types:
       - closed
@@ -14,6 +15,11 @@ jobs:
     steps:
       - name: Checkout code
         uses: actions/checkout@v2
+      - uses: actions/setup-node@v2-beta
+        with:
+          node-version: '15'
+      - name: Install deps
+        run: yarn
       - name: Upload translations
         run: node scripts/transifex push
         env: