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 9265acc commit cba59d4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/pr-auto-upsert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ jobs:
# replace newlines with \n
sed -i ':a;N;$!ba;s/\n/\\n/g' /tmp/commit_messages.txt
echo "commit messages:\n"
cat /tmp/commit_messages.txt
echo "\n"
echo "commit messages: $(cat /tmp/commit_messages.txt)"
curl https://api.openai.com/v1/chat/completions \
-H "Content-Type: application/json" \
Expand Down Expand Up @@ -73,9 +71,7 @@ jobs:
# replace " with \"
sed -i 's/"/\\"/g' /tmp/summary.txt
echo "summary:\n"
cat /tmp/summary.txt
echo "\n"
echo "summary: $(cat /tmp/summary.txt)"
echo "summary=$(cat /tmp/summary.txt)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit cba59d4

Please sign in to comment.