Created
February 4, 2023 22:24
-
-
Save moritzsalla/81492dc85053edca39bd80fe2d218f5c to your computer and use it in GitHub Desktop.
Skip Vercel build step
This file contains 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" != *"[skip build]"* ]] ; then | |
# Proceed with the build | |
exit 1; | |
else | |
# Don't proceed with the build | |
echo "🛑 - Ignored build step" | |
exit 0; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment