fix
This commit is contained in:
+11
-10
@@ -13,16 +13,17 @@ 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:
|
||||
|
||||
Reference in New Issue
Block a user