Skip to content

Commit

Permalink
docs: add an example with a whole script in a run
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Dec 21, 2024
1 parent b736c65 commit ccac312
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/mdbook/configuration/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,17 @@ pre-commit:
# Will quote where needed with single quotes
run: yarn test {staged_files} # will run `yarn eslint file1.js file2.js '[strange name].spec.js'`
```
#### Scripts
```yml
# lefthook.yml

pre-commit:
jobs:
- name: a whole script in a run
run: |
for file in $(ls .); do
yarn lint $file
done
```

0 comments on commit ccac312

Please sign in to comment.