diff --git a/Release.gitlab-ci.yml b/Release.gitlab-ci.yml index dd683ca..840515b 100644 --- a/Release.gitlab-ci.yml +++ b/Release.gitlab-ci.yml @@ -75,6 +75,13 @@ handle_mr: -H "Content-Type: application/json" \ --data "${BODY}" \ "https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/repository/files/CHANGELOG%2Emd" + if [ $? -ne 0 ]; then + curl -s -X POST \ + -H "Authorization: Bearer ${UNBOUND_RELEASE_TOKEN}" \ + -H "Content-Type: application/json" \ + --data "${BODY}" \ + "https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/repository/files/CHANGELOG%2Emd" + fi if [ -n "${MR}" ]; then echo "Updating existing MR" echo "Rebasing branch"