Skip to content

Commit

Permalink
feat: run the hook only if CircleCI config file is changed (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
YaraslauZhylko committed Oct 15, 2021
1 parent 1c1a7ee commit 7be19ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .pre-commit-hooks.yaml
Expand Up @@ -2,4 +2,6 @@
name: Validate CircleCI config
description: This hook validate CircleCI config
entry: circleci_validate.sh
language: script
language: script
files: .circleci/config.yml
pass_filenames: false
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -7,7 +7,7 @@
```bash
$ cat .pre-commit-config.yaml
- repo: https://github.com/zahorniak/pre-commit-circleci.git
rev: v0.2 # Ensure this is the latest tag, comparing to the Releases tab
rev: v0.3 # Ensure this is the latest tag, comparing to the Releases tab
hooks:
- id: circleci_validate
```
Expand Down

0 comments on commit 7be19ef

Please sign in to comment.