Skip to content

Commit 0c85285

Browse files
committed
[minor] generate_release_notes
1 parent 3a240de commit 0c85285

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/cicd.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,26 @@ jobs:
122122
set -euo pipefail
123123
echo "now: $(date -u +"%Y-%m-%dT%H:%M:%S.%3N")"
124124
125-
API_URL="https://api.github.com/repos/${{ github.repository }}/releases"
126125
TAG="v${VERSION}"
126+
127127
PAYLOAD=$(jq -n \
128128
--arg tag_name "$TAG" \
129129
--arg target_commitish "${{ github.sha }}" \
130130
--arg name "$TAG" \
131-
--arg body "Automated release for commit ${{ github.sha }}" \
132-
'{ tag_name: $tag_name, target_commitish: $target_commitish, name: $name, body: $body, draft: false, prerelease: false }')
133-
curl -sSf -X POST -H "Authorization: Bearer $GH_TOKEN" \
131+
'{
132+
tag_name: $tag_name,
133+
target_commitish: $target_commitish,
134+
name: $name,
135+
draft: false,
136+
prerelease: false,
137+
generate_release_notes: true
138+
}')
139+
140+
curl -sSf -X POST \
141+
-H "Authorization: Bearer $GH_TOKEN" \
134142
-H "Content-Type: application/json" \
135-
-d "$PAYLOAD" "$API_URL"
143+
-d "$PAYLOAD" \
144+
"https://api.github.com/repos/${{ github.repository }}/releases"
136145
137146
- name: Upload to PyPI (so simple, no GHA package needed)
138147
if: steps.version.outputs.version != ''

0 commit comments

Comments
 (0)