Ver código fonte

maybe fix

master
Daniel Hübleitner 5 anos atrás
pai
commit
bc79d1eeda
1 arquivos alterados com 2 adições e 10 exclusões
  1. 2
    10
      .drone.yml

+ 2
- 10
.drone.yml Ver arquivo

@@ -69,16 +69,8 @@ steps:
69 69
   - git config --global user.name "drone"
70 70
   - export PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
71 71
   - export LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
72
-  - if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; 
73
-      then 
74
-        git tag $PACKAGE_VERSION
75
-        git status
76
-        git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git master $PACKAGE_VERSION; 
77
-      else 
78
-        echo 'Version: '
79
-        echo $LATEST_VERSION 
80
-        echo 'did not change. Don`t push tag to master'; 
81
-    fi
72
+  - echo 'Package Version: '; echo ${PACKAGE_VERSION}
73
+  - echo 'Latest Version: '; echo ${LATEST_VERSION}
82 74
   environment:
83 75
     GIT_USER:
84 76
       from_secret: git_user

Carregando…
Cancelar
Salvar