Repository navigation
Repo sync #1018
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: Count translation corruptions | |
| # Counts Liquid corruptions across translations before correction logic changes ship. | |
| 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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| token: ${{ secrets.DOCS_BOT_PAT_BASE }} | |
| # Clone translations so the count script can render localized pages for corruption scans. | |
| - 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 |