ya-webadb/common/scripts/vercel-should-deploy.sh
2021-12-23 10:34:41 +08:00

13 lines
258 B
Bash

#!/bin/bash
echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"
if [[ "$VERCEL_GIT_COMMIT_REF" == "gh-pages" ]] ; then
# Don't build
echo "🛑 - Build cancelled"
exit 0;
else
# Proceed with the build
echo "✅ - Build can proceed"
exit 1;
fi