fix: create CHANGELOG.md if not already existing

This commit is contained in:
2024-10-05 11:03:35 +02:00
parent 5ec06d1bd6
commit 6331646181
+7
View File
@@ -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"