Skip to content

Commit da249bf

Browse files
committed
GHA: polish gh release creation
1 parent de2aa90 commit da249bf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/create-gh-release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: Github release marker, i.e. 4.20.1
7+
description: Github release marker, i.e. 4.20.1.RELEASE
88
required: true
99
type: string
1010

@@ -23,7 +23,13 @@ jobs:
2323
- name: Extract Changelog
2424
id: changelog
2525
run: |
26-
sed '/${{ inputs.version }}/,/^## .*/!d;//d;s/^* /- /' Changelog.md > ${{ github.workspace }}/gen-changelog.md
26+
release=${{ inputs.version }}
27+
version=`echo "${release%.*}"`
28+
qualifier=`echo "${release##*.}"`
29+
echo $version
30+
echo $qualifier
31+
echo "## ${release}" > ${{ github.workspace }}/gen-changelog.md
32+
sed '/${version} ${qualifier}/,/^## .*/!d;//d;s/^* /- /' Changelog.md >> ${{ github.workspace }}/gen-changelog.md
2733
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
2834
with:
2935
name: changelog-${{ inputs.version }}-${{ github.run_id }}.md

0 commit comments

Comments
 (0)