Skip to content

Commit e5974c7

Browse files
committed
once more [netlify-ignore]
1 parent 76b07ea commit e5974c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/ignore.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

33
# grab the latest entry from git log
4-
log=$(env -i git log -1 --pretty=%B)
5-
4+
log=$(env -i cd .. && git log -1 --pretty=%B)
5+
echo $log
66
# run a series of checks for common reasons that we shouldn't preview build.
77
# if no checks match, exit with code 1 to run the build
88

@@ -13,7 +13,7 @@ exit
1313
elif echo "$log" | grep -q 'link'; then
1414
exit
1515
# ignore when the ignore tag is explicitly added
16-
elif echo "$log" | grep -q '\\[netlify\\-ignore\\]'; then
16+
elif echo "$log" | grep -q 'netlify\-ignore'; then
1717
exit
1818
# ignore dependabot updates
1919
elif echo "$log" | grep -q 'dependabot'; then
@@ -24,4 +24,4 @@ exit
2424
else
2525
exit 1
2626
fi
27-
echo $log
27+

0 commit comments

Comments
 (0)