t
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details
continuous-integration/drone/tag Build is passing Details

pull/4/head
Dmitry Kirdyashkin 2023-07-23 00:26:46 +03:00
parent e1d21768e1
commit 1110c61a66
1 changed files with 0 additions and 15 deletions

15
lib
View File

@ -66,18 +66,3 @@ function delete-tag(){
-Url "https://gitea.kdiva.ru/api/v1/repos/${DRONE_REPO}/tags/latest" \ -Url "https://gitea.kdiva.ru/api/v1/repos/${DRONE_REPO}/tags/latest" \
-H 'Authorization: Bearer 10e4af53e553aacb905766512e36487492d61a66' -H 'Authorization: Bearer 10e4af53e553aacb905766512e36487492d61a66'
} }
function vars() {
echo "DRONE_SEMVER $DRONE_SEMVER"
echo "DRONE_REPO_LINK $DRONE_REPO_LINK"
echo "DRONE_TAG $DRONE_TAG"
echo "KEY $KEY"
echo "OTHER_KEY $OTHER_KEY"
RELEASES=$(curl -X GET -Url https://gitea.kdiva.ru/api/v1/repos/${DRONE_REPO}/releases)
RELEASES_IDS=$(jq -r '.[].id' <<< $RELEASES)
if [[ -z "${RELEASES_IDS}" ]]; then
echo "RELEASES_IDS id NULL"
else
echo "RELEASES_IDS id ${RELEASES_IDS}"
fi
}