From 37eb157ab5b6e783d833b1edbf1a9743db290dfe Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Thu, 16 May 2024 22:24:15 -0700 Subject: [PATCH] Added bash build script. --- ignore-build-step.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ignore-build-step.sh diff --git a/ignore-build-step.sh b/ignore-build-step.sh new file mode 100644 index 00000000..da63c205 --- /dev/null +++ b/ignore-build-step.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF" + +if [[ "$VERCEL_GIT_COMMIT_REF" != "analytics" ]] ; then + # Proceed with the build + echo "✅ - Build can proceed" + exit 1; + +else + # Don't build + echo "🛑 - Build cancelled" + exit 0; +fi \ No newline at end of file