From bcb26eabb8e38bc5a7b87bf74aa892fdd807352d Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Mon, 25 Nov 2024 11:30:08 +0200 Subject: [PATCH] =?UTF-8?q?chore(ci):=20add=20the=20sh=20script=20to=C2=A0?= =?UTF-8?q?prevent=20Vercel=20deploying=20from=20forks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/actions/vercel-deploy-check.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .github/actions/vercel-deploy-check.sh diff --git a/.github/actions/vercel-deploy-check.sh b/.github/actions/vercel-deploy-check.sh new file mode 100755 index 0000000000000..e7c4957846209 --- /dev/null +++ b/.github/actions/vercel-deploy-check.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "$VERCEL_GIT_REPO_OWNER" != "cube-js" ]; then + echo "Skipping deploy for PR from a fork." + exit 0 +fi + +# In other case return the usual git diff for a root folder +git diff HEAD^ HEAD --quiet ./