Crowdin Download Action #104
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: Crowdin Download Action | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| download-sources-from-crowdin: | |
| runs-on: ubuntu-x64 | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 (2026-01-09) | |
| with: | |
| persist-credentials: false | |
| - name: Get GitHub App token | |
| id: get-github-app-token | |
| uses: grafana/shared-workflows/actions/create-github-app-token@259ba21cb3ff07724f331e26d926d655d24b317b # create-github-app-token/v0.2.3 (2026-05-05) | |
| with: | |
| github_app: grafana-pr-automation | |
| - name: 'Get vault secrets' | |
| id: vault-secrets | |
| uses: grafana/shared-workflows/actions/get-vault-secrets@a53fc80bc30b0a16a262520465db899fa3af08b7 # get-vault-secrets/v1.3.2 (2026-05-04) | |
| with: | |
| # Vault secret paths: | |
| # - ci/repo/grafana/traces-drilldown/grafana-frontend-crowdin-token | |
| repo_secrets: | | |
| CROWDIN_TOKEN=grafana-frontend-crowdin-token:access_token | |
| - name: Download from Crowdin | |
| uses: grafana/grafana-github-actions/crowdin-download@3c62d35c5a66e730186a338e45aeb8fa784e2d56 # commit 3c62d35 (no release tag, 2026-05-21) | |
| with: | |
| crowdin_token: ${{ fromJSON(steps.vault-secrets.outputs.secrets).CROWDIN_TOKEN }} | |
| crowdin_project_id: 50 | |
| pr_labels: 'i18n' | |
| github_repo_token: ${{ steps.get-github-app-token.outputs.token }} |