Created
May 15, 2023 17:22
-
-
Save joshuabaker/2068f6df30bc3539841c28404e629269 to your computer and use it in GitHub Desktop.
For use on Vercel. Ignores the build step if a commit includes #nodeploy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "VERCEL_GIT_COMMIT_MESSAGE: $VERCEL_GIT_COMMIT_MESSAGE" | |
if [[ "$VERCEL_GIT_COMMIT_MESSAGE" == *"#nodeploy"* ]]; then | |
# Don't build | |
echo "🛑 - Build cancelled" | |
exit 0; | |
else | |
# Proceed with the build | |
echo "✅ - Build can proceed" | |
exit 1; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation
https://vercel.com/docs/concepts/projects/overview#ignored-build-step