Browse Source

fix

master
wat 5 years ago
parent
commit
b1261bec94
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      .drone.yml

+ 6
- 6
.drone.yml View File

13
   - echo "${DRONE_BUILD_CREATED}"
13
   - echo "${DRONE_BUILD_CREATED}"
14
   - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
14
   - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
15
   - git config --global user.name "${DRONE_COMMIT_AUTHOR}"
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
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; 
20
     git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION; 
21
   else 
21
   else 
22
-    echo 'Version '
23
-    echo $LATEST_VERSION 
22
+    echo 'Version ' \
23
+    echo $LATEST_VERSION \
24
     echo 'did not change. Don`t push tag to master'; 
24
     echo 'did not change. Don`t push tag to master'; 
25
   fi
25
   fi
26
 
26
 

Loading…
Cancel
Save