forked from reactjs/translations.react.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the translation infra (reactjs#285)
* Simplify translation infra Co-authored-by: Nat Alison <tesseralis@gmail.com> Co-authored-by: Brian Vaughn <brian.david.vaughn@gmail.com> * Add a local create-translation workflow --------- Co-authored-by: Nat Alison <tesseralis@gmail.com> Co-authored-by: Brian Vaughn <brian.david.vaughn@gmail.com>
- Loading branch information
1 parent
33b91ca
commit b9cdd38
Showing
52 changed files
with
7,543 additions
and
1,111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Sync CI (batch 1) | ||
|
||
on: | ||
schedule: | ||
# Run this job every Monday at 12am | ||
- cron: "0 0 * * 1" | ||
|
||
env: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
USER_NAME: ${{ secrets.USER_NAME }} | ||
USER_EMAIL: ${{ secrets.USER_EMAIL }} | ||
|
||
defaults: | ||
run: | ||
working-directory: ./scripts | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'yarn' | ||
- run: yarn install | ||
- run: ACTIONS_BATCH_PATTERN=6:1 yarn sync-translations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Sync CI (batch 2) | ||
|
||
on: | ||
schedule: | ||
# Run this job every Monday at 1am | ||
- cron: "0 1 * * 1" | ||
|
||
env: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
USER_NAME: ${{ secrets.USER_NAME }} | ||
USER_EMAIL: ${{ secrets.USER_EMAIL }} | ||
|
||
defaults: | ||
run: | ||
working-directory: ./scripts | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'yarn' | ||
- run: yarn install | ||
- run: ACTIONS_BATCH_PATTERN=6:2 yarn sync-translations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Sync CI (batch 3) | ||
|
||
on: | ||
schedule: | ||
# Run this job every Monday at 2am | ||
- cron: "0 2 * * 1" | ||
|
||
env: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
USER_NAME: ${{ secrets.USER_NAME }} | ||
USER_EMAIL: ${{ secrets.USER_EMAIL }} | ||
|
||
defaults: | ||
run: | ||
working-directory: ./scripts | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'yarn' | ||
- run: yarn install | ||
- run: ACTIONS_BATCH_PATTERN=6:3 yarn sync-translations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Sync CI (batch 4) | ||
|
||
on: | ||
schedule: | ||
# Run this job every Monday at 3am | ||
- cron: "0 3 * * 1" | ||
|
||
env: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
USER_NAME: ${{ secrets.USER_NAME }} | ||
USER_EMAIL: ${{ secrets.USER_EMAIL }} | ||
|
||
defaults: | ||
run: | ||
working-directory: ./scripts | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'yarn' | ||
- run: yarn install | ||
- run: ACTIONS_BATCH_PATTERN=6:4 yarn sync-translations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Sync CI (batch 5) | ||
|
||
on: | ||
schedule: | ||
# Run this job every Monday at 4am | ||
- cron: "0 4 * * 1" | ||
|
||
env: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
USER_NAME: ${{ secrets.USER_NAME }} | ||
USER_EMAIL: ${{ secrets.USER_EMAIL }} | ||
|
||
defaults: | ||
run: | ||
working-directory: ./scripts | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'yarn' | ||
- run: yarn install | ||
- run: ACTIONS_BATCH_PATTERN=6:5 yarn sync-translations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Sync CI (batch 6) | ||
|
||
on: | ||
schedule: | ||
# Run this job every Monday at 5am | ||
- cron: "0 5 * * 1" | ||
|
||
env: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
USER_NAME: ${{ secrets.USER_NAME }} | ||
USER_EMAIL: ${{ secrets.USER_EMAIL }} | ||
|
||
defaults: | ||
run: | ||
working-directory: ./scripts | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'yarn' | ||
- run: yarn install | ||
- run: ACTIONS_BATCH_PATTERN=6:6 yarn sync-translations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,6 @@ npm-debug.log | |
yarn-error.log | ||
!.gitkeep | ||
|
||
.temp | ||
.env* | ||
!.env.sample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.