Skip to content

Commit

Permalink
Update createGuide.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hadar-co authored Nov 11, 2024
1 parent 5682c5c commit 6bb1a4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/createGuide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "OpenAI-Beta: assistants=v2")
ASSISTANT_MESSAGE=$(echo "$MESSAGES" | jq -r '.data[] | select(.role=="assistant") | .content')
echo "Assistant's Response:"
echo "Assistant's Response:\n$ASSISTANT_MESSAGE"
echo "$ASSISTANT_MESSAGE" > guide.md
shell: bash

Expand All @@ -101,6 +101,7 @@ jobs:
- name: Create and Push Branch with Guide
run: |
git pull
git checkout -b generate-guide-branch
git add guide.md
git commit -m "Add generated guide: ${{ github.event.inputs.title }}"
Expand Down

0 comments on commit 6bb1a4c

Please sign in to comment.