Skip to content

Commit b6dc5a3

Browse files
committed
add check to not build if no changes made to src/
1 parent 3c8f252 commit b6dc5a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# ignore = "git log -1 --pretty=%B | ( ! grep -q '\[netlify\-build\]' )"
55
# Ignore if [netlify-ignore] is present
66

7+
# Don't build if there are no changes to src/
8+
ignore = "git diff --quiet HEAD^ HEAD src/"
9+
710
[context.deploy-preview]
811
command = "yarn develop"
912
ignore = "./scripts/ignore.sh"

0 commit comments

Comments
 (0)