Skip to content

Commit

Permalink
GHA: polish gh release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Oct 31, 2023
1 parent de2aa90 commit da249bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/create-gh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
version:
description: Github release marker, i.e. 4.20.1
description: Github release marker, i.e. 4.20.1.RELEASE
required: true
type: string

Expand All @@ -23,7 +23,13 @@ jobs:
- name: Extract Changelog
id: changelog
run: |
sed '/${{ inputs.version }}/,/^## .*/!d;//d;s/^* /- /' Changelog.md > ${{ github.workspace }}/gen-changelog.md
release=${{ inputs.version }}
version=`echo "${release%.*}"`
qualifier=`echo "${release##*.}"`
echo $version
echo $qualifier
echo "## ${release}" > ${{ github.workspace }}/gen-changelog.md
sed '/${version} ${qualifier}/,/^## .*/!d;//d;s/^* /- /' Changelog.md >> ${{ github.workspace }}/gen-changelog.md
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: changelog-${{ inputs.version }}-${{ github.run_id }}.md
Expand Down

0 comments on commit da249bf

Please sign in to comment.