ignore-step.sh (359B)
1 #!/bin/bash 2 3 # echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF" 4 5 # if [[ "$VERCEL_GIT_COMMIT_REF" == "staging" || "$VERCEL_GIT_COMMIT_REF" == "main" ]] ; then 6 # # Proceed with the build 7 # echo "✅ - Build can proceed" 8 # exit 1; 9 10 # else 11 # # Don't build 12 # echo "🛑 - Build cancelled" 13 # exit 0; 14 # fi 15 16 echo "✅ - Build can proceed" 17 exit 1;