Skip to content

Commit

Permalink
repo option
Browse files Browse the repository at this point in the history
  • Loading branch information
gweinjc committed Oct 13, 2023
1 parent c1d8765 commit f8ef219
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/draft-gh-release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,11 @@ jobs:
- name: Build Draft Release
run: |
VERSION=$(grep -Po '(\d+\.\d+\.\d+)' ${{ github.workspace }}/PowerShell/JumpCloud\ Module/JumpCloud.psd1)
echo $VERSION
TITLE="JumpCloud PowerShell Module v$VERSION"
echo $TITLE
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
gh release create $TAG --title $TITLE --notes $BODY --draft
gh release create $TAG --title $TITLE --notes $BODY --draft --repo ${{ github.repository_owner }}/${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit f8ef219

Please sign in to comment.