Skip to content

Commit

Permalink
Output created release note once before passing it to gh command
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang-33 authored Jan 21, 2025
1 parent 2e97b09 commit cb33277
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/create-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,14 @@ jobs:
console.log(`releaseNotes (modified): ${JSON.stringify(modifiedBody, null, 2)}`);
core.setOutput("release_body", modifiedBody);
- name: Write release notes to file
run: |
echo "${{ steps.generate-release-notes.outputs.release_body }}" > release-notes.txt
- name: Create Draft Release
run: |
gh release create "${{ steps.calculate-version.outputs.new_version }}" \
--title "${{ steps.calculate-version.outputs.new_version }} ${{ github.event.inputs.release_title }}" \
--notes "${{ steps.generate-release-notes.outputs.release_body }}" \
--notes-file release-notes.txt \
--draft \
--repo "${{ github.repository }}"
env:
Expand Down

0 comments on commit cb33277

Please sign in to comment.