Skip to content

Commit 331d3a7

Browse files
authored
chore(ci): add the sh script to prevent Vercel deploying from forks (#8986)
1 parent 1beba2d commit 331d3a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
if [ "$VERCEL_GIT_REPO_OWNER" != "cube-js" ]; then
4+
echo "Skipping deploy for PR from a fork."
5+
exit 0
6+
fi
7+
8+
# In other case return the usual git diff for a root folder
9+
git diff HEAD^ HEAD --quiet ./

0 commit comments

Comments
 (0)