Skip to content

Commit 5fef04e

Browse files
author
markzegarelli
authored
Merge pull request #1656 from segmentio/add-force-build
force build
2 parents b45f66a + db9f826 commit 5fef04e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/ignore.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ log=$(env -i git log -1 --pretty=%B)
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

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+
914
# ignore for simple typo fixes
10-
if echo "$log" | grep -q 'typo'; then
15+
elif echo "$log" | grep -q 'typo'; then
1116
echo "Build ignored because 'typo' is in the commit message."
1217
exit
1318
# ignore link / url updates
@@ -23,7 +28,7 @@ elif echo "$log" | grep -q 'dependabot'; then
2328
echo "Ignoring dependabot update"
2429
exit
2530
# 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
2732
echo "Build ignored because it's only an update from the main branch."
2833
exit
2934
else

0 commit comments

Comments
 (0)