Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update(ci): ja translation #19754

Merged
merged 2 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 53 additions & 53 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,63 +63,63 @@ jobs:
git commit -m "update translated files"
git push

# When ja-kernal version is different with cloud, open the comment and run the github action!
# ja-cloud:
# 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@v4
# name: Download translator repo
# with:
# repository: "shczhen/markdown-translator"
# path: "markdown-translator"
# - uses: actions/checkout@v4
# name: Download docs repo and specified branch
# with:
# ref: "i18n-ja-release-7.1"
# path: "docs"
# - uses: actions/setup-node@v4
# name: Setup node 18
# with:
# node-version: 18
# steps:
# - uses: actions/checkout@v4
# name: Download translator repo
# with:
# repository: "shczhen/markdown-translator"
# path: "markdown-translator"
# - uses: actions/checkout@v4
# name: Download docs repo and specified branch
# with:
# ref: "i18n-ja-release-7.1"
# path: "docs"
# - uses: actions/setup-node@v4
# 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
# 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
# - 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]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ja-full-translation-google.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
name: Download specified branch of docs repo
with:
ref: "release-8.1"
ref: "release-8.5"
path: "docs"
- uses: actions/setup-node@v4
name: Setup node 18
Expand Down
Loading