fix: create CHANGELOG.md if not already existing
This commit is contained in:
@@ -75,6 +75,13 @@ handle_mr:
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data "${BODY}" \
|
--data "${BODY}" \
|
||||||
"https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/repository/files/CHANGELOG%2Emd"
|
"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
|
if [ -n "${MR}" ]; then
|
||||||
echo "Updating existing MR"
|
echo "Updating existing MR"
|
||||||
echo "Rebasing branch"
|
echo "Rebasing branch"
|
||||||
|
|||||||
Reference in New Issue
Block a user