We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13d2cd4 commit cdddca9Copy full SHA for cdddca9
.drone.yml
@@ -3,7 +3,9 @@ clone:
3
clone:
4
image: plugins/git
5
commands:
6
- - git clone -b "$DRONE_BRANCH" "$DRONE_REMOTE_URL" .
+ - git init
7
+ - git remote add origin "$DRONE_REMOTE_URL"
8
+ - git pull origin "$DRONE_BRANCH"
9
- git fetch origin "$DRONE_COMMIT_REF"
10
- if [ "$DRONE_BUILD_EVENT" = "pull_request" ]; then git merge "$DRONE_COMMIT_SHA"; else git checkout -qf "$DRONE_COMMIT_SHA"; fi
11
- git submodule update --init --recursive --jobs 3
0 commit comments