From cba59d4f256802efcccacba6f8ed71d942090698 Mon Sep 17 00:00:00 2001 From: GalvinGao Date: Thu, 23 Nov 2023 01:38:55 -0800 Subject: [PATCH] build: update PR auto create --- .github/workflows/pr-auto-upsert.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-auto-upsert.yml b/.github/workflows/pr-auto-upsert.yml index d2448c56..ad7290b9 100644 --- a/.github/workflows/pr-auto-upsert.yml +++ b/.github/workflows/pr-auto-upsert.yml @@ -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" \ @@ -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