Newer
Older
skill-ovos-flowtoys / .github / workflows / auto_translate.yml
@Swen Gross Swen Gross on 14 Dec 2023 800 bytes clean localisations (#13)
name: Auto translate
on:
  workflow_dispatch:

jobs:
  autotranslate:
    env:
      API_KEY: ${{secrets.DL_API_KEY}}
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          ref: dev
          fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
      - name: Setup Python
        uses: actions/setup-python@v4
        with:
          python-version: 3.8
      - name: Install Translate Tools
        run: |
          python -m pip install ovos-translate-plugin-deepl ovos-utils
      - name: Auto Translate
        run: |
          python scripts/translate.py
      - name: Commit to dev
        uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: autotranslate
          branch: dev