Skip to content

Commit 410adc9

Browse files
committed
.travis.yml: Check GITHUB_TOKEN before deploy
Closes #60
1 parent 7203790 commit 410adc9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.ci/check_travis_deploy_vars.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
if [[ $TRAVIS_BRANCH == master && $TRAVIS_EVENT_TYPE == push &&
6+
! "$GITHUB_TOKEN" ]]; then
7+
false
8+
fi

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
script: coala --non-interactive -V
4848

4949
before_install:
50+
- .ci/check_travis_deploy_vars.sh
5051
- npm config set spin false
5152

5253
before_script:

0 commit comments

Comments
 (0)