flake: apply statix fixes #366
Workflow file for this run
This file contains 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: basic spell checks | |
on: [pull_request] | |
jobs: | |
run: | |
name: Spell check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v35 | |
- uses: cachix/install-nix-action@v20 | |
- run: | | |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
# exclude patches and input files | |
if [[ ! "$file" =~ .patch$ && ! "$file" =~ .inp$ ]]; then | |
nix run nixpkgs#typos -- "$file" | |
fi | |
done | |