Skip to content

Commit 058b774

Browse files
authored
Output created release note once before passing gh command
1 parent 9dd9c78 commit 058b774

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/create-draft-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,14 @@ jobs:
106106
console.log(`releaseNotes (modified): ${JSON.stringify(modifiedBody, null, 2)}`);
107107
core.setOutput("release_body", modifiedBody);
108108
109+
- name: Write release notes to file
110+
run: |
111+
echo "${{ steps.generate-release-notes.outputs.release_body }}" > release-notes.txt
109112
- name: Create Draft Release
110113
run: |
111114
gh release create "${{ steps.calculate-version.outputs.new_version }}" \
112115
--title "${{ steps.calculate-version.outputs.new_version }} ${{ github.event.inputs.release_title }}" \
113-
--notes "${{ steps.generate-release-notes.outputs.release_body }}" \
116+
--notes-file release-notes.txt \
114117
--draft \
115118
--repo "${{ github.repository }}"
116119
env:

0 commit comments

Comments
 (0)