Skip to content

Commit f6fa668

Browse files
committed
fix: pushing to master only when building itself
1 parent 355bbbf commit f6fa668

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,14 @@ docs-server:
9090
#
9191
# Pages data build process
9292
#
93+
should_build = true
9394
ifneq ($(TRAVIS_BRANCH), master)
95+
should_build = false
96+
endif
97+
ifneq ($(TRAVIS_PULL_REQUEST), false)
98+
should_build = false
99+
endif
100+
ifeq ($(should_build), false)
94101
pages:
95102
@echo "Cowardly refusing to build pages"
96103
else

0 commit comments

Comments
 (0)