Skip to content

Commit

Permalink
Update draft-gh-release-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gweinjc committed Oct 12, 2023
1 parent 95d94c7 commit e3eb9a6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/draft-gh-release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,16 @@ jobs:
- uses: actions/checkout@v4
- name: Build Draft Release
run: |
# Module Version
VERSION=$(grep -o '\d\+\.\d\+\.\d\+' ${{ github.workspace }}/PowerShell/JumpCloud\ Module/JumpCloud.psd1)
echo $VERSION
TITLE="JumpCloud PowerShell Module v$VERSION"
echo $TITLE
# Get the changelog text between the latest release # and the next sequential "## SemanticVersionNumber"
CHANGELOG=$(cat ${{ github.workspace }}/PowerShell/ModuleChangelog.md |awk "/^## $VERSION/{ f = 1; next } /## [0-9]+.[0-9]+.[0-9]+/{ f = 0 } f")
echo $CHANGELOG
TAG="v$VERSION"
echo $TAG
BODY="$TITLE $CHANGELOG"
echo $BODY
# Post Draft Release
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
Expand Down

0 comments on commit e3eb9a6

Please sign in to comment.