docs: added script to ignore builds in vercel (#3370)
* docs: added script for vercel builds * fix exit
This commit is contained in:
1 parent
2507af68b5
commit
3086f8b016
1 file changed
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
current_branch=$(git branch --show-current)
|
||||
|
||||
if [[ "$VERCEL_DEPLOY_BRANCHES" == *"$current_branch"* ]]; then
|
||||
echo "Branch allowed to deploy"
|
||||
exit 1;
|
||||
else
|
||||
echo "Branch not allowed to deploy"
|
||||
exit 0;
|
||||
fi
|
||||
Reference in new issue
Block a user