docs: added script to ignore builds in vercel (#3370)

* docs: added script for vercel builds

* fix exit
This commit is contained in:
Shahed Nasser
2023-03-03 14:24:33 +02:00
committed by GitHub
parent 2507af68b5
commit 3086f8b016

11
www/docs/vercel-ignore.sh Normal file
View File

@@ -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