f
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:18:04 +03:00
parent d42bb96c3c
commit 13ab88ee33
1 changed files with 5 additions and 2 deletions

7
lib
View File

@ -19,6 +19,9 @@ function create-release(){
LATEST_RELEASE_ID=$(jq -r '.[] | select(.tag_name=="latest") | .id' <<< $RELEASE_LIST)
delete-release $LATEST_RELEASE_ID
delete-tag
RELEASE_TAG="$1"
else
RELEASE_TAG="$1-$DRONE_BRANCH"
fi
COMMIT_SHA=$(git rev-parse HEAD)
@ -30,9 +33,9 @@ function create-release(){
-H 'Authorization: Bearer 10e4af53e553aacb905766512e36487492d61a66' \
-d '{
"draft": false,
"name": "'"release $1-$DRONE_BRANCH"'",
"name": "'"release $RELEASE_TAG"'",
"prerelease": false,
"tag_name": "'"$1-$DRONE_BRANCH"'",
"tag_name": "'"$RELEASE_TAG"'",
"target_commitish": "'"$COMMIT_SHA"'"
}')
}