This GitHub Action translates .md files from one repository and syncs them to another repository.
github-token
: (required) GitHub token.target-repo
: (required) Target repository to sync translated files.
name: Translate and Sync to Repo
on:
push:
branches:
- main
paths:
- '**/*.md'
jobs:
translate-and-sync:
runs-on: ubuntu-latest
steps:
- name: Checkout Source Repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Use Translate and Sync to Repo Action
uses: cythilya/translate-and-sync@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
target-repo: your-username/target-repo