File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
inputs :
6
6
version :
7
- description : Github release marker, i.e. 4.20.1
7
+ description : Github release marker, i.e. 4.20.1.RELEASE
8
8
required : true
9
9
type : string
10
10
23
23
- name : Extract Changelog
24
24
id : changelog
25
25
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
27
33
- uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
28
34
with :
29
35
name : changelog-${{ inputs.version }}-${{ github.run_id }}.md
You can’t perform that action at this time.
0 commit comments