Browse Source

maybe fix

master
Daniel Hübleitner 5 years ago
parent
commit
bc79d1eeda
1 changed files with 2 additions and 10 deletions
  1. 2
    10
      .drone.yml

+ 2
- 10
.drone.yml View File

69
   - git config --global user.name "drone"
69
   - git config --global user.name "drone"
70
   - export PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
70
   - export PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
71
   - export LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
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
   environment:
74
   environment:
83
     GIT_USER:
75
     GIT_USER:
84
       from_secret: git_user
76
       from_secret: git_user

Loading…
Cancel
Save