Merge pull request #17 from Shekar91/docs-translation #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto-translate docs | ||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 3 * * 1' | ||
| jobs: | ||
| translate: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v4 | ||
| with: python-version: '3.11' | ||
| - run: pip install deep-translator | ||
| - run: python .github/scripts/auto_translate.py | ||
| env: | ||
| TARGET_LANGS: "hi,es,fr" | ||
| - name: Create PR | ||
| uses: peter-evans/create-pull-request@v5 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| commit-message: "chore(docs): add machine-translated docs" | ||
| branch: translation/auto | ||
| title: "Auto: add machine-translated docs" | ||
| body: "Machine-generated translations. Please review." | ||