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 ./