Skip to content

Commit 46ad6de

Browse files
committed
chore(scripts): add ignore build step for vercel
1 parent 0a0598a commit 46ad6de

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/vercel.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"
4+
5+
if [[ "$VERCEL_GIT_COMMIT_REF" == "v2" || "$VERCEL_GIT_COMMIT_REF" == "v3" ]] ; then
6+
echo "🛑 - Build cancelled"
7+
exit 0;
8+
9+
else
10+
echo "✅ - Build can proceed"
11+
exit 1;
12+
fi

0 commit comments

Comments
 (0)