Skip to content

Commit

Permalink
ci: don't run git hooks when in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Mar 7, 2021
1 parent 0014da0 commit 4e6d55e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
@@ -1,4 +1,8 @@
#!/bin/sh

# don't run checks against ci commits
[ -n "$CI" ] && exit 0

. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -1,4 +1,8 @@
#!/bin/sh

# don't run checks against ci commits
[ -n "$CI" ] && exit 0

. "$(dirname "$0")/_/husky.sh"

yarn lint-staged

0 comments on commit 4e6d55e

Please sign in to comment.