From 5e5591d76ccc71854ae1058d03b64d751ba758c2 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 16 Dec 2021 22:46:50 -0800 Subject: [PATCH] cd.yaml: Extract release notes from CHANGELOG.md Signed-off-by: Khem Raj --- .github/workflows/cd.yaml | 9 +++++---- RELEASE_HEAD.md | 5 +++++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 RELEASE_HEAD.md diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index d87783305..19c2c767e 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -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 }} diff --git a/RELEASE_HEAD.md b/RELEASE_HEAD.md new file mode 100644 index 000000000..22f430cfd --- /dev/null +++ b/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: