From 438ccbc0167c7cb1bcc605932d4b5248aae92512 Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Mon, 17 Feb 2025 17:15:06 +0100
Subject: [PATCH] gitlab-ci: fix release job, there is a formatting problem in
 the changelog

---
 .gitlab/release.yml | 11 +++++++----
 tools/release.sh    | 12 ++++++------
 2 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/.gitlab/release.yml b/.gitlab/release.yml
index e10efe6f2..9ccd1ef98 100644
--- a/.gitlab/release.yml
+++ b/.gitlab/release.yml
@@ -4,12 +4,15 @@ release:
   rules:
     - if: $CI_COMMIT_TAG =~ /^v[0-9]\.[0-9]\.[0-9]$/ && $CI_PIPELINE_SOURCE != "schedule"
   dependencies: []
+  variables:
+    GIT_CONFIG_COUNT: 1
+    GIT_CONFIG_KEY_0: "safe.directory"
+    GIT_CONFIG_VALUE_0: "*"
+    VERSION: release
+  script:
+    - ./tools/release.sh
   artifacts:
     name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
     expire_in: 1 week
     paths:
       - chameleon-*.tar.gz
-  variables:
-    VERSION: release
-  script:
-    - ./tools/release.sh
diff --git a/tools/release.sh b/tools/release.sh
index 8f04fce9e..832dfcd5d 100755
--- a/tools/release.sh
+++ b/tools/release.sh
@@ -31,12 +31,12 @@ function gen_changelog()
     #echo $lastline
 
     changelog="Changes:\n"
-    for i in `seq $firstline $lastline`
-    do
-        local line=$( head -n $i ChangeLog | tail -n 1 )
-        changelog="$changelog$line\\n"
-        #echo $line
-    done
+    #for i in `seq $firstline $lastline`
+    #do
+    #    local line=$( head -n $i ChangeLog | tail -n 1 )
+    #    changelog="$changelog$line\\n"
+    #    #echo $line
+    #done
 
     changelog="$changelog\nWARNING: Download the source archive by clicking on the link __Download release__ above, please do not consider the automatic Source code links as they are missing the submodules.\nVisit the [documentation](https://solverstack.gitlabpages.inria.fr/chameleon/#quickstart-install) to see how to install Chameleon."
 }
-- 
GitLab