Skip to content
globe

GitHub Action

Translate and Sync to Repo

v1.0.4 Latest version

Translate and Sync to Repo

globe

Translate and Sync to Repo

Translate .md files from one repository and sync them to another repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Translate and Sync to Repo

uses: cythilya/[email protected]

Learn more about this action in cythilya/translate-and-sync-to-repo

Choose a version

Translate and Sync to Repo

This GitHub Action translates .md files from one repository and syncs them to another repository.

Inputs

  • github-token: (required) GitHub token.
  • target-repo: (required) Target repository to sync translated files.

Example Usage

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