docs: added script to ignore builds in vercel (#3370)
* docs: added script for vercel builds * fix exit
This commit is contained in:
@@ -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