Last active
February 4, 2022 23:01
Cancel deployment when changes happen in a specific folder on Vercel.
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
git diff HEAD^ HEAD --quiet ':!<folder_name>' | |
// E.g. I wanted to stop deployment when changes occured in cypress folder | |
// I put below code in the Ignored Build Step Command on Vercel | |
git diff HEAD^ HEAD --quiet ':!cypress' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment