Skip to content
Closed
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
21 changes: 3 additions & 18 deletions .github/workflows/translation-cron.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Translation Cron
name: Translation Cron JA

on:
schedule:
# every Wednesday at 11:00 AM
# Runs JA translation every Wednesday at 11:00 UTC.
- cron: "0 11 * * 3"
workflow_dispatch:
inputs:
Expand All @@ -17,22 +17,7 @@ env:
CLOUD_BRANCH: i18n-ja-release-8.5

jobs:
dispatch-translation-zh:
if: github.repository == 'pingcap/docs'
runs-on: ubuntu-latest
continue-on-error: true

steps:
- name: Dispatch translation-zh workflow
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ github.token }}" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/translation-zh.yaml/dispatches \
-d '{"ref":"master","inputs":{"file_names":${{ toJSON(inputs.file_names || '') }}}}'

# build a matrix of branches to translate, including LTS and Cloud
# Build a matrix of JA branches to translate, including LTS and Cloud.
build-matrix:
runs-on: ubuntu-latest
outputs:
Expand Down
Loading