Skip to content

Commit 6b5cdaf

Browse files
author
Paul Gebheim
committed
Clean up PR detection
1 parent 2b8f376 commit 6b5cdaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ jobs:
4343
docker pull $IMAGE_BUILD;
4444
docker tag $IMAGE_BUILD $IMAGE_LATEST;
4545
ARTIFACTS=true npm run docker:run:deploy && docker push $IMAGE_LATEST
46-
if: head_branch is blank
46+
if: type = push
4747
stages:
4848
- build
4949
- test
5050
- name: deploy
51-
if: (branch = master or tag =~ ^v\d+\.\d+\.\d+(-\d+)?$) and head_branch is blank
51+
if: branch = master or tag =~ ^v\d+\.\d+\.\d+(-\d+)?$
5252
git:
5353
depth: 5
5454
branches:

0 commit comments

Comments
 (0)