Generate supported-languages table from /v3/languages #1
Workflow file for this run
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: Sync language docs | |
| on: | |
| schedule: | |
| - cron: "17 6 * * *" | |
| workflow_dispatch: | |
| # TEMPORARY smoke-test trigger, remove before merge | |
| pull_request: | |
| paths: | |
| - ".github/workflows/sync-language-docs.yml" | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| - name: Regenerate language docs from /v3/languages | |
| env: | |
| DEEPL_API_KEY: ${{ secrets.DEEPL_API_KEY }} | |
| run: node scripts/update-language-docs.mjs "$DEEPL_API_KEY" | |
| - name: Open or update the sync PR | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: scripts/open-sync-pr.sh |