Skip to content

Commit 5e5591d

Browse files
committed
cd.yaml: Extract release notes from CHANGELOG.md
Signed-off-by: Khem Raj <[email protected]>
1 parent 6875bb1 commit 5e5591d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/cd.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,18 @@ jobs:
4343
/bin/bash -c ". ./beaglebone-envsetup.sh && bitbake yoe-sdk-image"
4444
/bin/bash -c ". ./raspberrypi4-64-envsetup.sh && bitbake yoe-sdk-image"
4545
- name: version
46-
run: echo "::set-output name=version::$(cat sources/meta-yoe/conf/distro/yoe.inc | grep 'DISTRO_VERSION =' | cut -d' ' -f 3)"
46+
run: echo "::set-output name=version::$(printf ' - ' && cat sources/meta-yoe/conf/distro/yoe.inc | grep 'DISTRO_CODENAME =' | cut -d' ' -f 3 )"
4747
id: version
4848
- name: release
4949
uses: actions/create-release@v1
50+
uses: CSchoel/release-notes-from-changelog@v1
5051
id: create_release
5152
with:
52-
draft: false
53+
draft: true
5354
prerelease: false
54-
release_name: ${{ steps.version.outputs.version }}
55+
release_name: ${{ github.ref }} ${{ steps.version.outputs.version }}
5556
tag_name: ${{ github.ref }}
56-
body_path: CHANGELOG.md
57+
body_path: RELEASE.md # generated by release-notes-from-changelog
5758
env:
5859
GITHUB_TOKEN: ${{ github.token }}
5960

RELEASE_HEAD.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# release-notes-from-changelog
2+
3+
GitHub action that extracts release notes from an existing changelog.
4+
5+
Changes in this version:

0 commit comments

Comments
 (0)