1
0
Fork 0

fix bad regex

This commit is contained in:
Enoch Riese 2023-02-28 12:42:01 -06:00
parent 18d998748d
commit c0739b3ce1

View file

@ -24,7 +24,7 @@ export const shouldSkipBuild = (siteName, checkFolders = '../shared .') => {
}
// Do not build commits that have [vercel skip] in the message
if (process.env.VERCEL_GIT_COMMIT_MESSAGE.match('[vercel skip]')) {
if (process.env.VERCEL_GIT_COMMIT_MESSAGE.match(/\[vercel skip\]/)) {
console.log('🛑 - Commit message includes [vercel skip] - Do not build')
process.exit(0)
}