Skip to content

Commit

Permalink
build: update PR auto create
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Nov 23, 2023
1 parent 0c57a53 commit 7ca9840
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pr-auto-upsert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ jobs:
# replace newlines with \n
sed -i ':a;N;$!ba;s/\n/\\n/g' /tmp/commit_messages.txt
echo "commit_messages:"
echo "commit messages:\n"
cat /tmp/commit_messages.txt
echo "\n"
curl https://api.openai.com/v1/chat/completions \
-H "Content-Type: application/json" \
Expand Down Expand Up @@ -72,8 +73,9 @@ jobs:
# replace " with \"
sed -i 's/"/\\"/g' /tmp/summary.txt
echo "summary:"
echo "summary:\n"
cat /tmp/summary.txt
echo "\n"
echo "summary=$(cat /tmp/summary.txt)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 7ca9840

Please sign in to comment.