浏览代码

fix

master
wat 5 年前
父节点
当前提交
c9d62aae47
共有 1 个文件被更改,包括 10 次插入10 次删除
  1. 10
    10
      .drone.yml

+ 10
- 10
.drone.yml 查看文件

@@ -13,16 +13,16 @@ steps:
13 13
   - echo "${DRONE_BUILD_CREATED}"
14 14
   - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
15 15
   - git config --global user.name "${DRONE_COMMIT_AUTHOR}"
16
-  - if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; \
17
-  then \
18
-    git tag $PACKAGE_VERSION \
19
-    git status \
20
-    git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION; 
21
-  else 
22
-    echo 'Version ' \
23
-    echo $LATEST_VERSION \
24
-    echo 'did not change. Don`t push tag to master'; 
25
-  fi
16
+  - > if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
17
+      then;
18
+        git tag $PACKAGE_VERSION;
19
+        git status;
20
+        git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION; 
21
+      else;
22
+        echo 'Version ';
23
+        echo $LATEST_VERSION;
24
+        echo 'did not change. Don`t push tag to master'; 
25
+      fi
26 26
 
27 27
   environment:
28 28
     GIT_USER:

正在加载...
取消
保存