From c9d62aae474039725a863c499b1f1f4e73d1daff Mon Sep 17 00:00:00 2001 From: wat Date: Sun, 22 Sep 2019 13:42:27 +0200 Subject: [PATCH] fix --- .drone.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 28d86f9..eb214a7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,16 +13,16 @@ steps: - echo "${DRONE_BUILD_CREATED}" - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}" - git config --global user.name "${DRONE_COMMIT_AUTHOR}" - - if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; \ - then \ - git tag $PACKAGE_VERSION \ - git status \ - git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION; - else - echo 'Version ' \ - echo $LATEST_VERSION \ - echo 'did not change. Don`t push tag to master'; - fi + - > if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; + then; + git tag $PACKAGE_VERSION; + git status; + git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION; + else; + echo 'Version '; + echo $LATEST_VERSION; + echo 'did not change. Don`t push tag to master'; + fi environment: GIT_USER: