From d36d639d995dbbaae2f8d9965c9faf4fd1241032 Mon Sep 17 00:00:00 2001 From: Scott Jungling Date: Fri, 7 Oct 2022 08:19:10 -0700 Subject: [PATCH] Create next-ignore.sh --- next-ignore.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 next-ignore.sh diff --git a/next-ignore.sh b/next-ignore.sh new file mode 100644 index 0000000..32a8dda --- /dev/null +++ b/next-ignore.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF" + +if [[ "$VERCEL_GIT_COMMIT_REF" =~ "test/" || + "$VERCEL_GIT_COMMIT_REF" =~ "actions/" || + "$VERCEL_GIT_COMMIT_REF" =~ "renovate/" || + "$VERCEL_GIT_COMMIT_MESSAGE" =~ "docs:" + ]] ; then + # Don't build + echo "🛑 - Build Canceled" + exit 0; +else + # Proceed with the build + echo "✅ - Build can proceed" + exit 1; +fi