[No QA] Docs updates for E/A#97177 Personal Karma web-only, disabled in mobile app #96355
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: Spell check | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| branches: [main] | |
| jobs: | |
| spellcheck: | |
| runs-on: blacksmith-2vcpu-ubuntu-2404 | |
| steps: | |
| - uses: useblacksmith/checkout@1c9394c220d293645707b625ba9d79685f093a8f # v1 | |
| - name: Setup Node | |
| uses: ./.github/actions/composite/setupNode | |
| - name: Remove E/App version from package-lock.json | |
| shell: bash | |
| run: jq 'del(.version, .packages[""].version)' package-lock.json > normalized-package-lock.json | |
| - name: Restore cspell cache | |
| # v5.0.1 | |
| uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb | |
| with: | |
| path: .cspellcache | |
| key: cspell-${{ runner.os }}-${{ hashFiles('cspell.json', 'normalized-package-lock.json') }}-${{ github.sha }} | |
| restore-keys: | | |
| cspell-${{ runner.os }}-${{ hashFiles('cspell.json', 'normalized-package-lock.json') }}- | |
| cspell-${{ runner.os }}- | |
| - name: Get changed files | |
| id: changed-files | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files --jq '.[].filename' | grep -v '^\.' > changed-files.txt || true | |
| echo "count=$(wc -l < changed-files.txt)" >> "$GITHUB_OUTPUT" | |
| - name: Spell check | |
| if: steps.changed-files.outputs.count != '0' | |
| run: xargs -d '\n' -a changed-files.txt npm run spell-changed -- | |
| - name: Save cspell cache | |
| # v4 | |
| uses: actions/cache/save@9255dc7a253b0ccc959486e2bca901246202afeb | |
| if: always() | |
| with: | |
| path: .cspellcache | |
| key: cspell-${{ runner.os }}-${{ hashFiles('cspell.json', 'normalized-package-lock.json') }}-${{ github.sha }} |