ci: check deploy branch vercel

This commit is contained in:
iCrawl 2022-07-20 18:49:24 +02:00
parent d0e3c972b4
commit 07a5cd7048
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2

11
.github/check_deploy_branch.sh vendored Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
if [[ "$VERCEL_GIT_COMMIT_REF" == "main" ]]; then
# Proceed with the build
echo "✅ - Proceed"
exit 1;
else
# Don't build
echo "🛑 - Build cancelled"
exit 0;
fi