Monthly EN Translation #1
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: Monthly EN Translation | |
| on: | |
| schedule: | |
| - cron: '0 2 1 * *' # 매월 1일 KST 11:00 | |
| workflow_dispatch: | |
| jobs: | |
| translate: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| fetch-depth: 1 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: pip | |
| - run: pip install requests | |
| - name: Translate KR → EN | |
| continue-on-error: true | |
| env: | |
| DEEPL_API_KEY: ${{ secrets.DEEPL_API_KEY }} | |
| run: python3 scripts/translate_to_en.py | |
| - name: Commit translated files | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add i18n/en/ .notion-translate-hashes.json | |
| git diff --cached --quiet && echo "번역 변경 없음" && exit 0 | |
| git commit -m "chore: EN 번역 자동 업데이트 [skip-notion]" | |
| git pull --rebase origin main | |
| git push origin main |