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 fc71ee6 commit 13d2cd4Copy full SHA for 13d2cd4
.drone.yml
@@ -3,12 +3,10 @@ clone:
3
clone:
4
image: plugins/git
5
commands:
6
- - sleep 5s
7
- - git init
8
- - git remote add origin $DRONE_REMOTE_URL
9
- - git fetch --no-tags origin $DRONE_COMMIT_REF
10
- - if [ $DRONE_BUILD_EVENT = "push" ]; then git reset --hard -q $DRONE_COMMIT_SHA; else git checkout -qf FETCH_HEAD; fi
11
- - git submodule update --init --recursive
+ - git clone -b "$DRONE_BRANCH" "$DRONE_REMOTE_URL" .
+ - git fetch origin "$DRONE_COMMIT_REF"
+ - if [ "$DRONE_BUILD_EVENT" = "pull_request" ]; then git merge "$DRONE_COMMIT_SHA"; else git checkout -qf "$DRONE_COMMIT_SHA"; fi
+ - git submodule update --init --recursive --jobs 3
12
13
pipeline:
14
# TESTS:
0 commit comments