File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,16 +62,16 @@ jobs:
6262 echo "- ${{ steps.build_info.outputs.swift_version }}"
6363 echo ""
6464
65- # What's Changed section
66- echo "## What's Changed"
65+ # What's Changed section (auto-generated by GitHub)
6766 if [ -n "$PREV_TAG" ]; then
68- gh api "repos/${REPO}/compare/${PREV_TAG}...${TAG_NAME}" --paginate \
69- --jq '.commits[] | select(.parents | length == 1) | "* \(.commit.message | split("\n")[0]) by @\(if .author then .author.login else .commit.author.name end) in \(.html_url)"'
70- echo ""
71- echo "**Full Changelog**: ${GITHUB_SERVER_URL}/${REPO}/compare/${PREV_TAG}...${TAG_NAME}"
67+ gh api "repos/${REPO}/releases/generate-notes" \
68+ -f tag_name="${TAG_NAME}" \
69+ -f previous_tag_name="${PREV_TAG}" \
70+ --jq '.body'
7271 else
73- gh api "repos/${REPO}/commits" --paginate \
74- --jq '.[] | select(.parents | length <= 1) | "* \(.commit.message | split("\n")[0]) by @\(if .author then .author.login else .commit.author.name end) in \(.html_url)"'
72+ gh api "repos/${REPO}/releases/generate-notes" \
73+ -f tag_name="${TAG_NAME}" \
74+ --jq '.body'
7575 fi
7676 } > release_notes.md
7777 - name : Create Release
You can’t perform that action at this time.
0 commit comments