Files
medusa-store/www/docs/vercel-ignore.sh
Shahed Nasser 3086f8b016 docs: added script to ignore builds in vercel (#3370)
* docs: added script for vercel builds

* fix exit
2023-03-03 14:24:33 +02:00

11 lines
221 B
Bash

#!/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