From 72f032fd67625c1204a63704de9cccbe3bcfde7c Mon Sep 17 00:00:00 2001 From: Amr Gharbeia Date: Fri, 8 May 2026 10:06:45 -0400 Subject: [PATCH] ci: use tag message as release notes body Extracts annotated tag message via git tag --format and passes it as body_path to action-gh-release. Fetch-depth: 0 ensures tag data is available in checkout. --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 88c6aeb..f58a1bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Create tarball run: | @@ -22,10 +24,17 @@ jobs: run: | git archive --format=zip --prefix=passepartout-$(git describe --tags) HEAD -o passepartout.zip + - name: Extract tag message as release notes + run: | + git tag -l --format='%(contents)' ${GITHUB_REF#refs/tags/} > /tmp/release-notes.md + echo "--- Notes preview ---" + head -20 /tmp/release-notes.md + - name: Upload to GitHub Release uses: softprops/action-gh-release@v2 with: files: | passepartout.tar.gz passepartout.zip + body_path: /tmp/release-notes.md generate_release_notes: true \ No newline at end of file