forked from pingcap/docs
-
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.
Merge branch 'master' into Frank945946/master
Signed-off-by: Aolin <[email protected]>
- Loading branch information
Showing
642 changed files
with
28,402 additions
and
10,018 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: TiDB Forum | ||
url: https://ask.pingcap.com/ | ||
about: Ask a question on the TiDB Forum. | ||
- name: TiDB Community | ||
url: https://discord.com/invite/DQZ2dy3cuc?utm_source=doc | ||
about: Join the TiDB community for collaborative discussions, problem solving, and insights sharing. |
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 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: cron | ||
|
||
on: | ||
schedule: | ||
- cron: "30 15 * * *" | ||
# schedule: | ||
# - cron: "30 15 */3 * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -18,12 +18,12 @@ jobs: | |
- uses: actions/checkout@v3 | ||
name: Download docs repo and specified branch | ||
with: | ||
ref: "i18n-ja-release-5.4" | ||
ref: "i18n-ja-release-7.1" | ||
path: "docs" | ||
- uses: actions/setup-node@v3 | ||
name: Setup node 16 | ||
name: Setup node 18 | ||
with: | ||
node-version: 16 | ||
node-version: 18 | ||
|
||
- run: | | ||
sudo apt install tree -y | ||
|
@@ -63,59 +63,73 @@ jobs: | |
git commit -m "update translated files" | ||
git push | ||
ja-6-1: | ||
runs-on: ubuntu-latest | ||
# When ja-kernal version is different with cloud, open the comment and run the github action! | ||
# ja-cloud: | ||
# runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
name: Download translator repo | ||
with: | ||
repository: "shczhen/markdown-translator" | ||
path: "markdown-translator" | ||
- uses: actions/checkout@v3 | ||
name: Download docs repo and specified branch | ||
with: | ||
ref: "i18n-ja-release-6.1" | ||
path: "docs" | ||
- uses: actions/setup-node@v3 | ||
name: Setup node 16 | ||
with: | ||
node-version: 16 | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# name: Download translator repo | ||
# with: | ||
# repository: "shczhen/markdown-translator" | ||
# path: "markdown-translator" | ||
# - uses: actions/checkout@v3 | ||
# name: Download docs repo and specified branch | ||
# with: | ||
# ref: "i18n-ja-release-7.1" | ||
# path: "docs" | ||
# - uses: actions/setup-node@v3 | ||
# name: Setup node 18 | ||
# with: | ||
# node-version: 18 | ||
|
||
- run: | | ||
sudo apt install tree -y | ||
# - run: | | ||
# sudo apt install tree -y | ||
|
||
- name: Download files by comparing commits | ||
run: | | ||
export GH_TOKEN=${{github.token}} | ||
cd docs | ||
npm i | ||
node scripts/filterUpdateFiles.js | ||
tree tmp | ||
cd .. | ||
- name: Copy new files to translator folder | ||
run: | | ||
cp -r docs/tmp markdown-translator/markdowns | ||
- name: Config and translate | ||
run: | | ||
cd markdown-translator | ||
echo ${{secrets.GCP_KEY}} | base64 --decode >> key.json | ||
export GOOGLE_APPLICATION_CREDENTIALS=key.json | ||
export PROJECT_ID=${{ secrets.GCP_PROJECT_ID }} | ||
export GLOSSARY_ID=${{ secrets.GCP_GLOSSARY_ID }} | ||
yarn | ||
node src/index.js | ||
cd .. | ||
- name: Copy translated files to docs repo | ||
run: | | ||
cp -r markdown-translator/output/markdowns/* docs/ | ||
# - name: Download files by comparing commits | ||
# run: | | ||
# export GH_TOKEN=${{github.token}} | ||
# cd docs | ||
# npm i | ||
# node scripts/filterUpdateFiles.js | ||
# tree tmp | ||
# cd .. | ||
# - name: Copy new files to translator folder | ||
# run: | | ||
# cp -r docs/tmp markdown-translator/markdowns | ||
# - name: Config and translate | ||
# run: | | ||
# cd markdown-translator | ||
# echo ${{secrets.GCP_KEY}} | base64 --decode >> key.json | ||
# export GOOGLE_APPLICATION_CREDENTIALS=key.json | ||
# export PROJECT_ID=${{ secrets.GCP_PROJECT_ID }} | ||
# export GLOSSARY_ID=${{ secrets.GCP_GLOSSARY_ID }} | ||
# yarn | ||
# node src/index.js | ||
# cd .. | ||
# - name: Copy translated files to docs repo | ||
# run: | | ||
# cp -r markdown-translator/output/markdowns/* docs/ | ||
|
||
- name: Git commit and push | ||
# - name: Git commit and push | ||
# run: | | ||
# cd docs | ||
# git status | ||
# git config user.name github-actions | ||
# git config user.email [email protected] | ||
# git add . | ||
# git commit -m "update translated files" | ||
# git push | ||
dispatch: | ||
runs-on: ubuntu-latest | ||
needs: [ja] | ||
|
||
steps: | ||
- name: trigger docs-staging workflow | ||
run: | | ||
cd docs | ||
git status | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "update translated files" | ||
git push | ||
curl \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: token ${{ secrets.DOCS_STAGING }}" \ | ||
https://api.github.com/repos/pingcap/docs-staging/actions/workflows/update.yml/dispatches \ | ||
-d '{"ref":"main","inputs":{"full": "false", "repo":"${{ github.repository }}","branch":"i18n-ja-release-7.1"}}' |
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ on: | |
- release-7.2 | ||
- release-7.1 | ||
- release-7.0 | ||
- release-6.6 | ||
- release-6.5 | ||
- release-6.1 | ||
- release-5.4 | ||
|
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
aliases: | ||
sig-develop-docs-approvers: | ||
- Oreoxmt | ||
- qiancai | ||
- ran-huang | ||
sig-develop-docs-reviewers: | ||
- Icemap | ||
- sykp241095 | ||
- shizn | ||
- winkyao | ||
- shczhen | ||
- hooopo | ||
- Mini256 | ||
- wd0517 | ||
- it2911 |
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
Oops, something went wrong.