Skip to content

Bump cspell from 9.7.0 to 10.0.0 #309

Bump cspell from 9.7.0 to 10.0.0

Bump cspell from 9.7.0 to 10.0.0 #309

Workflow file for this run

name: Precious
permissions:
contents: read
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
jobs:
code-formatting:
env:
BASE_REF: ${{ github.base_ref }}
runs-on: ubuntu-latest
name: Code Formatting
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Setup mise
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Fetch base ref
if: ${{ github.event.pull_request }}
run: git fetch origin "${BASE_REF}"
- name: Select files
id: select-files
run: |
if [[ -n "${{ github.event.pull_request.number }}" ]]; then
echo "precious-args=--git-diff-from origin/${BASE_REF}" >> "$GITHUB_OUTPUT"
else
echo 'precious-args=--all' >> "$GITHUB_OUTPUT"
fi
- name: Lint files
run: precious lint ${PRECIOUS_ARGS}
env:
PRECIOUS_ARGS: ${{ steps.select-files.outputs.precious-args }}