Skip to content

Translate JSON

Translate JSON #7

Workflow file for this run

name: Translate JSON
on:
push:
paths:
- 'docs/translations.json'
jobs:
translate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11' # Use the latest Python 3 version
- name: Install dependencies
run: pip install requests
- name: Translate JSON
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: python translate.py
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'Automated translation update'
branch: main