This folder contains an agent workflow used to keep Japanese AsciiDoc topics in sync with English topics.
sync-jp-docs.md- Copilot agent workflow prompt for syncingtopics/enupdates intotopics/ja.
sync-jp-docs.md is a Copilot agent workflow definition (frontmatter + instructions), not a traditional GitHub Actions YAML file.
The agent:
- Detects English
.adocfiles changed in the latest push. - Finds the matching Japanese file path.
- Applies equivalent content changes with Japanese translation for prose.
- Opens a PR with synced updates.
Configured in the workflow frontmatter:
pushon branches:maingedinakova/jp-translation-aw
- path filter:
topics/en/**/*.adoc
- manual trigger:
workflow_dispatch
For each changed English file:
- Source:
topics/en/<name>.adoc - Target resolution order:
topics/ja/<name>.ja-JP.adoctopics/ja/<name>.adoc(legacy fallback if it already exists)
- If neither exists, create:
topics/ja/<name>.ja-JP.adoc
- Safe output
create-pull-requesttargets base branch:main - PR title prefix:
[jp-sync] - Labels:
translation,japanese,automation - If there are no applicable changes, the workflow emits a no-op output.
Translate:
- Titles and headings
- Paragraphs and list text
- Table prose
Preserve exactly:
- AsciiDoc metadata block structure
- Tokens such as
{ProductName},{PlatformName},{ApiVersion} - AsciiDoc directives (
ifdef::,endif::,include::, etc.) - Code blocks and source fences
- Link/image targets, URLs, API names, CLI commands
- Commit and push changes under
topics/en/**/*.adocto a configured branch. - The workflow runs automatically.
- Open repository Actions in GitHub.
- Select Sync Japanese Documentation.
- Click Run workflow and choose branch.
- No compilation/build step is required for this workflow.
- This is content synchronization and translation automation.
- To add document validation (lint/link checks), create a separate CI workflow.