build(deps): bump regex from 1.12.3 to 1.12.4 #83
Workflow file for this run
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: Codespell | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| spellcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install codespell | |
| run: python -m pip install codespell==2.4.1 | |
| - name: Collect changed files | |
| id: changed-files | |
| run: | | |
| git diff --name-only --diff-filter=ACMRT -z "${{ github.event.pull_request.base.sha }}...HEAD" > changed-files.txt | |
| if [ -s changed-files.txt ]; then | |
| echo "has_files=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "has_files=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Check spelling in changed files | |
| if: steps.changed-files.outputs.has_files == 'true' | |
| run: xargs -0 codespell < changed-files.txt |