Skip to content

fix - Confirm page loads infinitely after opening scan shortcut and opening create manual from QAB #36014

fix - Confirm page loads infinitely after opening scan shortcut and opening create manual from QAB

fix - Confirm page loads infinitely after opening scan shortcut and opening create manual from QAB #36014

Workflow file for this run

name: Spell check
on:
pull_request:
types: [opened, synchronize]
branches: [main]
jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- 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
# v4
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57
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: |
FILES=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files --jq '.[].filename' | tr '\n' ' ')
echo "files=$FILES" >> "$GITHUB_OUTPUT"
- name: Filter out dot files
id: filtered-files
run: |
FILES=$(echo "${{ steps.changed-files.outputs.files }}" | tr ' ' '\n' | grep -v '^\.' | xargs)
echo "files=$FILES" >> "$GITHUB_OUTPUT"
- name: Spell check
if: steps.filtered-files.outputs.files != ''
run: npm run spell-changed -- ${{ steps.filtered-files.outputs.files }}
- name: Save cspell cache
# v4
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57
if: always()
with:
path: .cspellcache
key: cspell-${{ runner.os }}-${{ hashFiles('cspell.json', 'normalized-package-lock.json') }}-${{ github.sha }}