Skip to content

Commit 7be19ef

Browse files
feat: run the hook only if CircleCI config file is changed (#3)
1 parent 1c1a7ee commit 7be19ef

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.pre-commit-hooks.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
name: Validate CircleCI config
33
description: This hook validate CircleCI config
44
entry: circleci_validate.sh
5-
language: script
5+
language: script
6+
files: .circleci/config.yml
7+
pass_filenames: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
```bash
88
$ cat .pre-commit-config.yaml
99
- repo: https://github.com/zahorniak/pre-commit-circleci.git
10-
rev: v0.2 # Ensure this is the latest tag, comparing to the Releases tab
10+
rev: v0.3 # Ensure this is the latest tag, comparing to the Releases tab
1111
hooks:
1212
- id: circleci_validate
1313
```

0 commit comments

Comments
 (0)