From 0c374289c2298070ddd967d687bd259c738a4f16 Mon Sep 17 00:00:00 2001 From: Bertrand Darbon Date: Tue, 3 Dec 2024 15:07:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20release=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/generateReleaseNotes.js | 2 +- .github/workflows/release.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/generateReleaseNotes.js b/.github/generateReleaseNotes.js index b653247..296b6ec 100644 --- a/.github/generateReleaseNotes.js +++ b/.github/generateReleaseNotes.js @@ -21,7 +21,7 @@ const GITMOJI_CATEGORIES = { }; function generateReleaseNotes() { - const commits = execSync("git log --oneline $(git describe --tags --abbrev=0 @^)..@ --pretty=format:%s").toString().split("\n"); + const commits = execSync("git log --oneline $(git describe --tags --abbrev=0 HEAD^)..HEAD --pretty=format:%s").toString().split("\n"); const categoryCommits = {}; Object.keys(GITMOJI_CATEGORIES).forEach((emoji) => { diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb7989d..db08696 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,9 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Get tags run: git fetch --tags origin