Skip to content

Commit

Permalink
ci: add vercel check deploy branch script
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Jul 20, 2022
1 parent 4cf0555 commit 5c1e558
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/check_deploy_branch.sh
@@ -0,0 +1,13 @@
#!/bin/bash

git diff HEAD^ HEAD --quiet .

if [[ "$VERCEL_GIT_COMMIT_REF" == "main" && $? -eq 1 ]]; then
# Proceed with the build
echo "✅ - Proceed"
exit 1;
else
# Don't build
echo "🛑 - Build cancelled"
exit 0;
fi

0 comments on commit 5c1e558

Please sign in to comment.