]> source.dussan.org Git - gitea.git/commitdiff
Fetch refs for successful testing for tag (#7388)
authortechknowlogick <techknowlogick@gitea.io>
Tue, 9 Jul 2019 02:24:52 +0000 (22:24 -0400)
committerzeripath <art27@cantab.net>
Tue, 9 Jul 2019 02:24:52 +0000 (03:24 +0100)
* Fetch refs for successful testing for tag

Fix #7382

* Update .drone.yml

.drone.yml

index 086b5cd2b53a7939e4b817f4cde075fb6088e0d2..c07179b95dfe92ab8191fdce238b4a3b11e4b0d2 100644 (file)
@@ -116,6 +116,17 @@ steps:
         - push
         - pull_request
 
+  - name: tag-pre-condition
+    pull: always
+    image: alpine/git
+    commands:
+      - git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
+    depends_on:
+      - build
+    when:
+      event:
+        - tag
+
   - name: tag-test
     pull: always
     image: golang:1.12
@@ -124,7 +135,7 @@ steps:
     environment:
       TAGS: bindata
     depends_on:
-      - build
+      - tag-pre-condition
     when:
       event:
         - tag