Skip to content

Commit

Permalink
fix: skip pre-push script on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yue4u committed Sep 27, 2023
1 parent bba6183 commit d665fec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

readonly DEV='dev'

if [[ -z "$CI" ]]; then
echo "[info] skip confirm on CI"
exit 0
fi

while read local_ref local_sha1 remote_ref remote_sha1
do
if [[ "${remote_ref##refs/heads/}" = $DEV ]]; then
Expand Down

0 comments on commit d665fec

Please sign in to comment.