Author SHA1 Message Date
armistace 44b5ea6a68 Merge pull request 'load_dotenv work different?' (#9) from pipeline_creation into master
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Failing after 9m17s
Reviewed-on: #9
2025-06-04 22:55:26 +10:00
armistace a49457094d load_dotenv work different? 2025-06-04 22:54:09 +10:00
armistace 9296fda390 Merge pull request 'tail the .env so we can see it in pipelin' (#8) from pipeline_creation into master
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Failing after 9m5s
Reviewed-on: #8
2025-06-04 22:44:14 +10:00
armistace bb0d9090f3 tail the .env so we can see it in pipelin 2025-06-04 22:43:53 +10:00
armistace 703a2384e7 Merge pull request 'sigh stray U' (#7) from pipeline_creation into master
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Failing after 9m2s
Reviewed-on: #7
2025-06-04 22:30:36 +10:00
armistace 4b3f00c325 Merge branch 'master' into pipeline_creation 2025-06-04 22:29:42 +10:00
armistace 38dfe404d1 sigh stray U 2025-06-04 22:29:12 +10:00
armistace 347ac63f86 Merge pull request 'helps to install virtualenv' (#6) from pipeline_creation into master
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Failing after 8m59s
Reviewed-on: #6
2025-06-04 22:17:46 +10:00
armistace 506758f67d helps to install virtualenv 2025-06-04 22:17:11 +10:00
armistace f0572ba9fb Merge pull request 'pipeline_creation' (#5) from pipeline_creation into master
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Failing after 7m5s
Reviewed-on: #5
2025-06-04 22:08:28 +10:00
armistace 4686f3fae0 y in right place 2025-06-04 22:07:47 +10:00
armistace ea1c8cfb13 add y to apt call 2025-06-04 22:07:15 +10:00
armistace 9ca7578d28 Merge pull request 'pipeline_creation' (#4) from pipeline_creation into master
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Failing after 4m28s
Reviewed-on: #4
2025-06-04 22:02:00 +10:00
armistace 64b466c4ac load dotenv in main.py 2025-06-04 22:01:15 +10:00
armistace 49174de9ff correct pipeline titles 2025-06-04 21:59:33 +10:00
armistace 59f9f01c69 first cut at pipeline 2025-06-04 21:48:59 +10:00
armistace a7eae4b09f Merge pull request 'matrix_notifications' (#3) from matrix_notifications into master
Reviewed-on: #3
2025-06-04 21:34:12 +10:00
3 changed files with 56 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
name: Create Blog Article if new notes exist
on:
schedule:
- cron: "15 3 * * *"
push:
branches:
- master
jobs:
prepare_blog_drafts_and_push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
shell: bash
run: |
apt update && apt upgrade -y
apt install rustc cargo python-is-python3 pip python3-venv python3-virtualenv libmagic-dev git -y
virtualenv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
- name: Create .env
shell: bash
run: |
echo "TRILIUM_HOST=${{ vars.TRILIUM_HOST }}" > .env
echo "TRILIUM_PORT=${{ vars.TRILIUM_PORT }}" >> .env
echo "TRILIUM_PROTOCOL=${{ vars.TRILIUM_PROTOCOL }}" >> .env
echo "TRILIUM_PASS=${{ secrets.TRILIUM_PASS }}" >> .env
echo "TRILIUM_TOKEN=${{ secrets.TRILIUM_TOKEN }}" >> .env
echo "OLLAMA_PROTOCOL=${{ vars.OLLAMA_PROTOCOL }}" >> .env
echo "OLLAMA_HOST=${{ vars.OLLAMA_HOST }}" >> .env
echo "OLLAMA_PORT=${{ vars.OLLAMA_PORT }}" >> .env
echo "EMBEDDING_MODEL=${{ vars.EMBEDDING_MODEL }}" >> .env
echo "EDITOR_MODEL=${{ vars.EDITOR_MODEL }}" >> .env
echo "CONTENT_CREATOR_MODELS=${{ vars.CONTENT_CREATOR_MODELS }}" >> .env
echo "GIT_PROTOCOL=${{ vars.GIT_PROTOCOL }}" >> .env
echo "GIT_REMOTE=${{ vars.GIT_REMOTE }}" >> .env
echo "GIT_USER=${{ vars.GIT_USER }}" >> .env
echo "GIT_PASS='${{ secrets.GIT_PASS }}'" >> .env
echo "N8N_SECRET='${{ secrets.N8N_SECRET }}'" >> .env
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
run: |
source .venv/bin/activate
python src/main.py
+1
View File
@@ -5,3 +5,4 @@ PyGithub
chromadb chromadb
langchain-ollama langchain-ollama
PyJWT PyJWT
dotenv
+2
View File
@@ -4,6 +4,8 @@ import repo_management.repo_manager as git_repo
from notifications.n8n import N8NWebhookJwt from notifications.n8n import N8NWebhookJwt
import string,os import string,os
from datetime import datetime from datetime import datetime
from dotenv import load_dotenv
load_dotenv()
tril = tn.TrilumNotes() tril = tn.TrilumNotes()