We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76b07ea commit e5974c7Copy full SHA for e5974c7
scripts/ignore.sh
@@ -1,8 +1,8 @@
1
#!/usr/bin/env bash
2
3
# grab the latest entry from git log
4
-log=$(env -i git log -1 --pretty=%B)
5
-
+log=$(env -i cd .. && git log -1 --pretty=%B)
+echo $log
6
# run a series of checks for common reasons that we shouldn't preview build.
7
# if no checks match, exit with code 1 to run the build
8
@@ -13,7 +13,7 @@ exit
13
elif echo "$log" | grep -q 'link'; then
14
exit
15
# ignore when the ignore tag is explicitly added
16
-elif echo "$log" | grep -q '\\[netlify\\-ignore\\]'; then
+elif echo "$log" | grep -q 'netlify\-ignore'; then
17
18
# ignore dependabot updates
19
elif echo "$log" | grep -q 'dependabot'; then
@@ -24,4 +24,4 @@ exit
24
else
25
exit 1
26
fi
27
-echo $log
+
0 commit comments