name: Count translation corruptions # **What it does**: Generates a summary of Liquid corruptions per language. # **Why we have it**: For insights into the state of translations and things we can do to fix them # **Who does it impact**: Engineering on: workflow_dispatch: pull_request: paths: - src/languages/scripts/count-translation-corruptions.ts - src/languages/lib/correct-translation-content.ts - .github/workflows/count-translation-corruptions.yml - .github/actions/node-npm-setup/action.yml - .github/actions/clone-translations/action.yml - 'package**.json' permissions: contents: read jobs: count-translation-corruptions: if: github.repository == 'github/docs-internal' runs-on: ubuntu-latest steps: - name: Checkout English repo uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: # Using a PAT is necessary so that the new commit will trigger the # CI in the PR. (Events from GITHUB_TOKEN don't trigger new workflows.) token: ${{ secrets.DOCS_BOT_PAT_BASE }} # It's important because translations are often a bit behind. # So if a translation is a bit behind, it might still be referencing # an asset even though none of the English content does. - name: Clone all translations uses: ./.github/actions/clone-translations with: token: ${{ secrets.DOCS_BOT_PAT_BASE }} - uses: ./.github/actions/node-npm-setup - name: Run count run: npm run count-translation-corruptions