Commit 025bbaf3 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Add curl call to remove pre-existing release

parent 5debba0b
......@@ -50,6 +50,9 @@ MYURL=`eval $GETURL | jq .url | tr -d '"'`
# extract the change log from ChangeLog.md
gen_changelog
# Try to remove the release if it already exists
curl --request DELETE --header "PRIVATE-TOKEN: $RELEASE_TOKEN" " https://gitlab.inria.fr/api/v4/projects/$CI_PROJECT_ID/releases/v$RELEASE_NAME"
# Generate the curl command that create the release
COMMAND=`echo curl --header \"Content-Type: application/json\" --header \"PRIVATE-TOKEN: $RELEASE_TOKEN\" \
--data \'{ \"name\": \"v$RELEASE_NAME\", \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment