From 07a5cd70488d287c93def9b60fe902c3a8996c8a Mon Sep 17 00:00:00 2001 From: iCrawl Date: Wed, 20 Jul 2022 18:49:24 +0200 Subject: [PATCH] ci: check deploy branch vercel --- .github/check_deploy_branch.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .github/check_deploy_branch.sh diff --git a/.github/check_deploy_branch.sh b/.github/check_deploy_branch.sh new file mode 100755 index 000000000..9c055f227 --- /dev/null +++ b/.github/check_deploy_branch.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [[ "$VERCEL_GIT_COMMIT_REF" == "main" ]]; then + # Proceed with the build + echo "✅ - Proceed" + exit 1; +else + # Don't build + echo "🛑 - Build cancelled" + exit 0; +fi