Skip to content

Commit 442fd5e

Browse files
Merge pull request #32 from brainelectronics/bugfix/fill-release-body-again
update release body with correct content again
2 parents 1d39e73 + ba8edd0 commit 442fd5e

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
--dry-run > latest-entry.json
4141
echo "CHANGELOG_JSON=$(jq -c . < latest-entry.json)" >> $GITHUB_ENV
4242
- name: Update changelog with snippets
43+
id: update_changelog
4344
run: |
4445
poetry run changelog-generator \
4546
changelog changelog.md \
@@ -83,6 +84,6 @@ jobs:
8384
with:
8485
tag_name: ${{ env.latest_version }}
8586
release_name: ${{ env.latest_version }}
86-
body: ${{ steps.parse_changelog.outputs.LATEST_DESCRIPTION }}
87+
body: ${{ steps.update_changelog.outputs.LATEST_DESCRIPTION }}
8788
draft: false
8889
prerelease: false

.github/workflows/test-release.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
--dry-run > latest-entry.json
3838
echo "CHANGELOG_JSON=$(jq -c . < latest-entry.json)" >> $GITHUB_ENV
3939
- name: Update changelog with snippets
40+
id: update_changelog
4041
run: |
4142
poetry run changelog-generator \
4243
changelog changelog.md \
@@ -93,6 +94,6 @@ jobs:
9394
with:
9495
tag_name: ${{ env.latest_version }}-rc${{ github.run_number }}.dev${{ github.event.number }}
9596
release_name: ${{ env.latest_version }}-rc${{ github.run_number }}.dev${{ github.event.number }}
96-
body: ${{ steps.parse_changelog.outputs.LATEST_DESCRIPTION }}
97+
body: ${{ steps.update_changelog.outputs.LATEST_DESCRIPTION }}
9798
draft: false
9899
prerelease: true

.snippets/31.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Fill release body correctly
2+
<!--
3+
type: bugfix
4+
scope: internal
5+
affected: all
6+
-->
7+
8+
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.

0 commit comments

Comments
 (0)