Skip to content

flaskcwg/sphinx-translate-sync

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Update Sphinx Translations Action

This GitHub Action helps you automatically fetch and update Sphinx translations from a source repository to your own repository.

Inputs

  • source_repo: (Required) The URL of the source repository containing the original translations.
  • target_branch: (Optional) The branch to push updated translations to (default: main).
  • languages: (Required) A comma-separated list of language codes to update (e.g., en,fr,de).

Example Workflow

name: 'Update Sphinx Translations'

on:
  push:
    branches:
      - main

jobs:
  update-translations:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout repository
      uses: actions/checkout@v3

    - name: Update translations
      uses: your-org/update-sphinx-translations-action@v1
      with:
        source_repo: 'https://github.com/your-org/source-repo.git'
        languages: 'en,fr,de'