From 8e28136e0951be00954686f72eceeceeb323e84b Mon Sep 17 00:00:00 2001 From: Lars Jansen Date: Thu, 29 Oct 2026 12:29:52 +0100 Subject: [PATCH] ci: generate the release notes once, after all builds --- .github/workflows/release.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ba1247..2aa734f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,4 +39,15 @@ jobs: - uses: softprops/action-gh-release@v3 with: files: gitcraft-*.* - generate_release_notes: true + + # Once, after every build: with the notes generated in each matrix job they were appended six times. + notes: + needs: build + runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + steps: + - run: | + notes=$(gh api "repos/$GH_REPO/releases/generate-notes" -f tag_name="$GITHUB_REF_NAME" --jq .body) + gh release edit "$GITHUB_REF_NAME" --notes "$notes"