From 5e1a1690d37851cbff36bb43cb0cdfddf191a0b7 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Mon, 18 Nov 2024 20:22:25 -0500 Subject: [PATCH] Update docs/netlify-ignore-command.sh Co-authored-by: Cem Aksoylar --- docs/netlify-ignore-command.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/netlify-ignore-command.sh b/docs/netlify-ignore-command.sh index b9da1bd3982c..aaf4402220ab 100755 --- a/docs/netlify-ignore-command.sh +++ b/docs/netlify-ignore-command.sh @@ -1,6 +1,6 @@ #!/bin/sh -# We deploy main and version branches only +# We deploy main, version branches and deploy previews only if echo $HEAD | grep -E '^(main|v[[:digit:]]+\.([[:digit:]])+-branch)$' || echo $CONTEXT | grep '^deploy-preview$' then echo "Head '$HEAD' matches a deployed branch, or context is deploy preview, checking for git changes."