Skip to content

Commit

Permalink
Updated create-release action
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisli30 committed Dec 5, 2024
1 parent 47c3d10 commit 345b740
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,8 @@ jobs:
LATEST_RELEASE=$(gh release list --limit 1 | cut -f1)
COMMITS=$(git log ${LATEST_RELEASE}..HEAD --pretty=format:"%s")
# Use GitHub API to generate AI summary
SUMMARY=$(gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews \
-f body="Please summarize these changes:
${COMMITS}" \
-q .body)
# Generate a summary from the commit messages
SUMMARY="Summary of changes:\n${COMMITS}"
# Store the summary for the release
echo "summary<<EOF" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 345b740

Please sign in to comment.