Skip to content

add action to translate readme (#151) #1

add action to translate readme (#151)

add action to translate readme (#151) #1

Workflow file for this run

name: Continuous Translation
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "README.md"
- lessons/*/README.md
permissions:
contents: write
models: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
continuous_translation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: .genaiscript/cache/**
key: continuous-translation-${{ github.run_id }}
restore-keys: |
continuous-translation-
- uses: pelikhan/action-continuous-translation@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
lang: fr
files: |
- README.md
- lessons/*/README.md
- uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: "**.md* **/translations/*.json"
commit_message: "[cai] translated docs"
commit_user_name: "genaiscript"