Skip to content

Commit 06b61e1

Browse files
committed
Allow to skip deployment with [skip deploy] commit message part
1 parent 45a93de commit 06b61e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ go:
77
stages:
88
- Tests
99
- name: Deploy
10-
if: env(TRAVIS_PULL_REQUEST) IS false AND (branch = master OR tag IS present)
10+
if: env(TRAVIS_PULL_REQUEST) IS false AND (branch = master OR tag IS present) AND commit_message !~ /(\[skip deploy\])/
1111

1212
install:
1313
- go get -u github.com/golang/dep/cmd/dep

0 commit comments

Comments
 (0)