Skip to content

Commit 877661c

Browse files
committed
a
1 parent 3188300 commit 877661c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
core.setOutput('latest_tag', 'v0.0.0'); // Default for first release
6161
}
6262
63-
- name: Calculate New Version by github-script
63+
- name: Calculate New Version
6464
id: calculate-version
6565
uses: actions/github-script@v6
6666
with:
@@ -96,14 +96,13 @@ jobs:
9696
repo: context.repo.repo,
9797
tag_name: "${{ steps.calculate-version.outputs.new_version }}"
9898
});
99-
console.log(`releaseNotes: ${releaseNotes}`);
99+
console.log(`releaseNotes: ${JSON.stringify(releaseNotes, null, 2)}`);
100100
core.setOutput("release_body", releaseNotes.body);
101101
102102
- name: Create Draft Release
103103
run: |
104-
gh release create "${nextVersion}" --generate-notes --draft --title "${nextVersion}"
105104
gh release create "${{ steps.calculate-version.outputs.new_version }}" \
106-
--title "${github.calculate-version.outputs.new_version} ${github.event.inputs.release_title}" \
105+
--title "${{ steps.calculate-version.outputs.new_version }} ${{ github.event.inputs.release_title }}" \
107106
--notes "${{ steps.generate-release-notes.outputs.release_body }}" \
108107
--draft \
109108
--repo "${{ github.repository }}"

0 commit comments

Comments
 (0)