Skip to content

Commit

Permalink
cd.yaml: Extract release notes from CHANGELOG.md
Browse files Browse the repository at this point in the history
Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
kraj committed Dec 17, 2021
1 parent 6875bb1 commit 5e5591d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/cd.yaml
Expand Up @@ -43,17 +43,18 @@ jobs:
/bin/bash -c ". ./beaglebone-envsetup.sh && bitbake yoe-sdk-image"
/bin/bash -c ". ./raspberrypi4-64-envsetup.sh && bitbake yoe-sdk-image"
- name: version
run: echo "::set-output name=version::$(cat sources/meta-yoe/conf/distro/yoe.inc | grep 'DISTRO_VERSION =' | cut -d' ' -f 3)"
run: echo "::set-output name=version::$(printf ' - ' && cat sources/meta-yoe/conf/distro/yoe.inc | grep 'DISTRO_CODENAME =' | cut -d' ' -f 3 )"
id: version
- name: release
uses: actions/create-release@v1
uses: CSchoel/release-notes-from-changelog@v1
id: create_release
with:
draft: false
draft: true
prerelease: false
release_name: ${{ steps.version.outputs.version }}
release_name: ${{ github.ref }} ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
body_path: CHANGELOG.md
body_path: RELEASE.md # generated by release-notes-from-changelog
env:
GITHUB_TOKEN: ${{ github.token }}

Expand Down
5 changes: 5 additions & 0 deletions RELEASE_HEAD.md
@@ -0,0 +1,5 @@
# release-notes-from-changelog

GitHub action that extracts release notes from an existing changelog.

Changes in this version:

0 comments on commit 5e5591d

Please sign in to comment.