From ba8edd09140369c5840b7945d0b127e56a6b519d Mon Sep 17 00:00:00 2001 From: Jonas Scharpf Date: Sat, 12 Oct 2024 17:02:13 +0200 Subject: [PATCH] update release body with correct content again --- .github/workflows/release.yml | 3 ++- .github/workflows/test-release.yaml | 3 ++- .snippets/31.md | 8 ++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .snippets/31.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f90b11b..f7bd881 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,6 +40,7 @@ jobs: --dry-run > latest-entry.json echo "CHANGELOG_JSON=$(jq -c . < latest-entry.json)" >> $GITHUB_ENV - name: Update changelog with snippets + id: update_changelog run: | poetry run changelog-generator \ changelog changelog.md \ @@ -83,6 +84,6 @@ jobs: with: tag_name: ${{ env.latest_version }} release_name: ${{ env.latest_version }} - body: ${{ steps.parse_changelog.outputs.LATEST_DESCRIPTION }} + body: ${{ steps.update_changelog.outputs.LATEST_DESCRIPTION }} draft: false prerelease: false diff --git a/.github/workflows/test-release.yaml b/.github/workflows/test-release.yaml index a40868b..715ea2c 100644 --- a/.github/workflows/test-release.yaml +++ b/.github/workflows/test-release.yaml @@ -37,6 +37,7 @@ jobs: --dry-run > latest-entry.json echo "CHANGELOG_JSON=$(jq -c . < latest-entry.json)" >> $GITHUB_ENV - name: Update changelog with snippets + id: update_changelog run: | poetry run changelog-generator \ changelog changelog.md \ @@ -93,6 +94,6 @@ jobs: with: tag_name: ${{ env.latest_version }}-rc${{ github.run_number }}.dev${{ github.event.number }} release_name: ${{ env.latest_version }}-rc${{ github.run_number }}.dev${{ github.event.number }} - body: ${{ steps.parse_changelog.outputs.LATEST_DESCRIPTION }} + body: ${{ steps.update_changelog.outputs.LATEST_DESCRIPTION }} draft: false prerelease: true diff --git a/.snippets/31.md b/.snippets/31.md new file mode 100644 index 0000000..526d2f1 --- /dev/null +++ b/.snippets/31.md @@ -0,0 +1,8 @@ +## Fill release body correctly + + +With [1.5.1](https://github.com/brainelectronics/snippets2changelog/tree/1.5.1) the changelog parsing and generation has been splitted up, but the location of the output for the release body has not been moved accordingly.