Merge pull request #1 from josmo/promote-tag-fix

Adding check of refs to handle promotions of tags
This commit is contained in:
Brad Rydzewski 2018-11-13 09:48:46 -08:00 committed by GitHub
commit 6b831bd981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,12 @@ export GIT_COMMITTER_EMAIL=${GIT_AUTHOR_EMAIL}
# TODO we should ultimately look at the ref, since # TODO we should ultimately look at the ref, since
# we need something compatible with deployment events. # we need something compatible with deployment events.
case $DRONE_BUILD_EVENT in CLONE_TYPE=$DRONE_BUILD_EVENT
case $DRONE_COMMIT_REF in
refs/tags/* ) CLONE_TYPE=tag ;;
esac
case $CLONE_TYPE in
pull_request) pull_request)
clone-pull-request clone-pull-request
;; ;;