Skip to content

Commit

Permalink
travis-scripts/deploy: skip on cron
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Souza committed Feb 9, 2019
1 parent 106136e commit 2fd1149
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion travis-scripts/deploy.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ function main() {
env=$1
commit_version=${TRAVIS_COMMIT:0:7}

if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
echo >&2 "skipping deployment on cron"
return 0
fi

if [ -z "$env" ]; then
echo >&2 "missing env name"
exit 2
return 2
fi

install_drone $DRONE_VERSION
Expand Down

0 comments on commit 2fd1149

Please sign in to comment.