diff --git a/.github/workflows/release-changelog.yml b/.github/workflows/release-changelog.yml index be55b45a04..107cafe331 100644 --- a/.github/workflows/release-changelog.yml +++ b/.github/workflows/release-changelog.yml @@ -18,8 +18,9 @@ jobs: - name: Generate changelog id: generate_changelog run: | - # Utilisez git pour extraire les messages de commit entre cette branche et master - CHANGELOG=$(git log origin/master.. --oneline --no-merges) + npm install -g conventional-changelog-cli + conventional-changelog -p angular -i CHANGELOG.md -s -r 0 + CHANGELOG=$(cat CHANGELOG.md) # Formatage pour Markdown (commentaire GitHub) CHANGELOG="${CHANGELOG//'%'/'%25'}" CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"