Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
(#819) Additional steps to create a release and edit release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuck99 committed Apr 10, 2024
1 parent 9ee87dd commit 58471ef
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pre_release_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,15 @@ jobs:
git commit -m ${{steps.pin_versions.outputs.COMMIT_MESSAGE}}
git tag ${{inputs.tagName}}
git push origin ${{inputs.tagName}}
- name: Create Release
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: gh release create --generate-notes --draft ${{inputs.tagName}}
- name: Edit Release Notes
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
BODY_JSON=$(gh release view ${{inputs.tagName}} --json body)
cat "${{steps.pin_versions.outputs.COMMIT_MESSAGE}}\n\n" > "$RUNNER_TEMP/relnotes.txt"
cat ${{fromJSON($BODY_JSON)}}.body >> "$RUNNER_TEMP/relnotes.txt"
gh release edit --notes-file "$RUNNER_TEMP/relnotes.txt"

0 comments on commit 58471ef

Please sign in to comment.