From 61b4a6828dec64b333ad5c977c5ff14420e61468 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Mon, 17 Jul 2023 17:00:21 +0200 Subject: [PATCH] Removed pre-push hook - we no longer allow pushing to the `main` branch, so this hook is never used - if you tried to push locally, it'd fail because I've since removed Lerna - this commit cleans up the hook --- .github/hooks/pre-push | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 .github/hooks/pre-push diff --git a/.github/hooks/pre-push b/.github/hooks/pre-push deleted file mode 100755 index 998625467b..0000000000 --- a/.github/hooks/pre-push +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -[ -n "$CI" ] && exit 0 - -UPSTREAM=${GHOST_UPSTREAM:-origin} -GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD) - -# $1 is the name of the remote to which the push is being done -if [ "$1" = "$UPSTREAM" ] && [ "$GIT_BRANCH" = "main" ]; then - printf "ℹ️ Pushing to \033[0;32m$GIT_BRANCH\033[0m branch requires some checks in advance\n" - - yarn lerna run --include-dependents --since $1/$GIT_BRANCH test:unit -fi