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-22 02:09:04 +03:00
parent ed0b3fb15d
commit df96af8e98
1 changed files with 4 additions and 2 deletions

6
lib
View File

@ -20,7 +20,8 @@ function create-release(){
delete-release $LATEST_RELEASE_ID delete-release $LATEST_RELEASE_ID
delete-tag delete-tag
fi fi
COMMIT_SHA=$(git rev-parse HEAD)
RESPONSE=$(curl \ RESPONSE=$(curl \
-X 'POST' \ -X 'POST' \
-Url "https://gitea.kdiva.ru/api/v1/repos/${DRONE_REPO}/releases" \ -Url "https://gitea.kdiva.ru/api/v1/repos/${DRONE_REPO}/releases" \
@ -31,7 +32,8 @@ function create-release(){
"draft": false, "draft": false,
"name": "'"$1"'", "name": "'"$1"'",
"prerelease": false, "prerelease": false,
"tag_name": "'"$1"'" "tag_name": "'"$1"'",
"target_commitish": "'"$COMMIT_SHA"'"
}') }')
} }