@@ -11,31 +11,31 @@ if echo $log | grep -1 'netlify\-build'; then
11
11
echo " Force build becuase Netlify is a benevolent overseer"
12
12
exit 1
13
13
# make sure we don't build for changes that are not in src/
14
- elif git diff --quiet $COMMIT_REF $CACHED_COMMIT_REF -- src/; then
15
- echo " No changes to src/ detected, skipping"
16
- exit
17
- # ignore for simple typo fixes
18
- elif echo " $log " | grep -q ' typo' ; then
19
- echo " Build ignored because 'typo' is in the commit message."
20
- exit
21
- # ignore link / url updates
22
- elif echo " $log " | grep -q ' link' ; then
23
- echo " Build ignored because 'link' is in the commit message."
24
- exit
25
- # ignore when the ignore tag is explicitly added
26
- elif echo " $log " | grep -q ' netlify\-ignore' ; then
27
- echo " Build ignored because it was requested."
28
- exit
29
- # ignore dependabot updates
30
- elif echo " $log " | grep -q ' dependabot' ; then
31
- echo " Ignoring dependabot update"
32
- exit
33
- # ignore when master is merged into a branch
34
- elif echo " $log " | grep -q ' Merge branch \Smaster\S' ; then
35
- echo " Build ignored because it's only an update from the main branch."
36
- exit
37
- else
38
- echo " Nothing to ignore here, building! "
39
- exit 1
14
+ # elif git diff --quiet $COMMIT_REF $CACHED_COMMIT_REF -- src/; then
15
+ # echo "No changes to src/ detected, skipping"
16
+ # exit
17
+ # # ignore for simple typo fixes
18
+ # elif echo "$log" | grep -q 'typo'; then
19
+ # echo "Build ignored because 'typo' is in the commit message."
20
+ # exit
21
+ # # ignore link / url updates
22
+ # elif echo "$log" | grep -q 'link'; then
23
+ # echo "Build ignored because 'link' is in the commit message."
24
+ # exit
25
+ # # ignore when the ignore tag is explicitly added
26
+ # elif echo "$log" | grep -q 'netlify\-ignore'; then
27
+ # echo "Build ignored because it was requested."
28
+ # exit
29
+ # # ignore dependabot updates
30
+ # elif echo "$log" | grep -q 'dependabot'; then
31
+ # echo "Ignoring dependabot update"
32
+ # exit
33
+ # # ignore when master is merged into a branch
34
+ # elif echo "$log" | grep -q 'Merge branch \Smaster\S'; then
35
+ # echo "Build ignored because it's only an update from the main branch."
36
+ # exit
37
+ # else
38
+ echo " Build skipped "
39
+ exit 0
40
40
fi
41
41
0 commit comments