Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7fd32b3024 | ||
|
|
a88d233c6b | ||
|
|
f430998137 | ||
|
|
8dceb79d91 | ||
|
|
6c5b0f778d | ||
|
|
37ed8fd0f9 |
@@ -21,6 +21,9 @@ jobs:
|
||||
source .venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
git config --global user.name "Blog Creator"
|
||||
git config --global user.email "ridgway.infrastructure@gmail.com"
|
||||
git config --global push.autoSetupRemote true
|
||||
|
||||
- name: Create .env
|
||||
shell: bash
|
||||
@@ -45,7 +48,6 @@ jobs:
|
||||
echo "N8N_WEBHOOK_URL='${{ vars.N8N_WEBHOOK_URL }}'" >> .env
|
||||
echo "CHROMA_HOST='${{ vars.CHROMA_HOST }}'" >> .env
|
||||
echo "CHROMA_PORT='${{ vars.CHROMA_PORT }}'" >> .env
|
||||
tail .env -n 100
|
||||
|
||||
- name: Create Blogs
|
||||
shell: bash
|
||||
|
||||
+3
-2
@@ -50,9 +50,10 @@ for note in tril_notes:
|
||||
git_branch_url = f'https://git.aridgwayweb.com/armistace/blog/src/branch/{os_friendly_title}/src/content/{os_friendly_title}.md'
|
||||
n8n_system_prompt = f"You are a blog creator notifiying the final editor of the final creation of blog available at {git_branch_url}"
|
||||
n8n_prompt_human = f"""
|
||||
Generate an informal 150 word
|
||||
Generate an informal 100 word
|
||||
summary describing {ai_gen.response}.
|
||||
Don't address it or use names. ONLY OUTPUT THE RESPONSE
|
||||
Don't address it or use names. ONLY OUTPUT THE RESPONSE.
|
||||
ONLY OUTPUT IN PLAINTEXT STRIP ALL MARKDOWN
|
||||
"""
|
||||
notification_message = ai_gen.generate_system_message(n8n_system_prompt, n8n_prompt_human)
|
||||
secret_key = os.environ['N8N_SECRET']
|
||||
|
||||
Reference in New Issue
Block a user