Skip to content

Instantly share code, notes, and snippets.

@moritzsalla
Created February 4, 2023 22:24
Show Gist options
  • Save moritzsalla/81492dc85053edca39bd80fe2d218f5c to your computer and use it in GitHub Desktop.
Save moritzsalla/81492dc85053edca39bd80fe2d218f5c to your computer and use it in GitHub Desktop.
Skip Vercel build step
#!/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