Skip to content

Commit

Permalink
Merge pull request #217 from puppetlabs/CONT-930-add_gh-changelog
Browse files Browse the repository at this point in the history
(CONT-930) - Roll out new changelog generator
  • Loading branch information
GSPatton authored May 15, 2023
2 parents caf25e5 + 48a6d46 commit fc8513c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,16 @@ jobs:
with:
args: "build"

- name: "Generate release notes"
run: |
export GH_HOST=github.com
gh extension install chelnak/gh-changelog
gh changelog get --latest > OUTPUT.md
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Create release"
run: |
gh release create v${{ steps.get_version.outputs.version }} --title v${{ steps.get_version.outputs.version }}
gh release create v${{ steps.get_version.outputs.version }} --title v${{ steps.get_version.outputs.version }} -F OUTPUT.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Auto release"
name: "Release Prep"

on:
workflow_dispatch:
Expand Down

0 comments on commit fc8513c

Please sign in to comment.