File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,13 @@ log=$(env -i git log -1 --pretty=%B)
6
6
# run a series of checks for common reasons that we shouldn't preview build.
7
7
# if no checks match, exit with code 1 to run the build
8
8
9
+ # Force a build
10
+ if echo $log | grep -1 ' netlify\-build' ; then
11
+ echo " Force build becuase Netlify is a benevolent overseer"
12
+ exit 1
13
+
9
14
# ignore for simple typo fixes
10
- if echo " $log " | grep -q ' typo' ; then
15
+ elif echo " $log " | grep -q ' typo' ; then
11
16
echo " Build ignored because 'typo' is in the commit message."
12
17
exit
13
18
# ignore link / url updates
@@ -23,7 +28,7 @@ elif echo "$log" | grep -q 'dependabot'; then
23
28
echo " Ignoring dependabot update"
24
29
exit
25
30
# ignore when master is merged into a branch
26
- elif echo " $log " | grep -q ' Merge branch \Smaster \S' ; then
31
+ elif echo " $log " | grep -q ' Merge branch \SMaster \S' ; then
27
32
echo " Build ignored because it's only an update from the main branch."
28
33
exit
29
34
else
You can’t perform that action at this time.
0 commit comments