Skip to content

Commit 5117590

Browse files
techknowlogickjeffliu27
authored andcommitted
Fetch refs for successful testing for tag (go-gitea#7388)
* Fetch refs for successful testing for tag Fix go-gitea#7382 * Update .drone.yml
1 parent 27c68dc commit 5117590

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.drone.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,17 @@ steps:
116116
- push
117117
- pull_request
118118

119+
- name: tag-pre-condition
120+
pull: always
121+
image: alpine/git
122+
commands:
123+
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
124+
depends_on:
125+
- build
126+
when:
127+
event:
128+
- tag
129+
119130
- name: tag-test
120131
pull: always
121132
image: golang:1.12
@@ -124,7 +135,7 @@ steps:
124135
environment:
125136
TAGS: bindata
126137
depends_on:
127-
- build
138+
- tag-pre-condition
128139
when:
129140
event:
130141
- tag

0 commit comments

Comments
 (0)