Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changelog capture
Browse files Browse the repository at this point in the history
jworkmanjc committed Nov 13, 2023
1 parent 8802e3d commit 9cccabc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/jcapi-powershell-release.yml
Original file line number Diff line number Diff line change
@@ -61,8 +61,8 @@ jobs:
- uses: actions/checkout@v4
- name: Build Draft Release
run: |
MODULE_VERSION=$(grep -Po '(\d+\.\d+\.\d+)' ${{ github.workspace }}/SDKs/PowerShell/${{ matrix.sdkName }}/${{ matrix.sdkName }}.psd1)
VERSION=$(echo $MODULE_VERSION | grep -Po "\d\+\.\d\+\.\d\+")
MODULE_CAPTURE=$(grep -Po 'ModuleVersion = '(\d+\.\d+\.\d+)'' ${{ github.workspace }}/SDKs/PowerShell/${{ matrix.sdkName }}/${{ matrix.sdkName }}.psd1)
VERSION=$(echo $MODULE_CAPTURE | grep -Po "(\d+\.\d+\.\d+)")
TITLE="${{ matrix.sdkName }}-$VERSION"
# Get the changelog text between the latest release # and the next sequential "## SemanticVersionNumber"
CHANGELOG=$(cat ${{ github.workspace }}/${{ matrix.sdkName }}.md | awk "/^## ${{ matrix.sdkName }}-$VERSION/{ f = 1; next } /## ${{ matrix.sdkName }}-[0-9]+.[0-9]+.[0-9]+/{ f = 0 } f")

0 comments on commit 9cccabc

Please sign in to comment.