ci: migrate GitHub actions to Gitea actions
Deploy CV Site (andreknie.de) / deploy (push) Canceled after 0s
Deploy CV Site (andreknie.de) / deploy (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
import os
|
||||
import re
|
||||
|
||||
POSTS_DIR = "content/posts"
|
||||
files_to_update = [
|
||||
"2025-11-19-001-systemprompt-prompting.md",
|
||||
"2025-12-03-002-llms-wahrheit.md",
|
||||
"2025-12-17-003-kometen-ki-browser.md",
|
||||
"2025-12-31-004-deepfakes-ki-pornos.md",
|
||||
"2026-01-14-005-reasoning-komplexere-recherchen.md",
|
||||
"2026-01-28-006-kinder-ki.md",
|
||||
"2026-02-11-007-agenten-teil-1-mcp-a2a.md",
|
||||
"2026-02-25-008-agenten-teil-2-openclaw-moltbook.md",
|
||||
"2026-03-11-009-rags-vektordatenbanken.md",
|
||||
"2026-04-04-010-ki-kirche.md",
|
||||
"2026-04-22-011-datensouver-nit-t-teil-1-abh-ngigkeiten.md",
|
||||
"2026-05-06-012-datensouver-nit-t-teil-2-f-derierung.md",
|
||||
"2025-11-21-eigentlich-muesste-ich-heute-etwas-ueber-den-omnibus-und-die-drohende-erosion-de.md"
|
||||
]
|
||||
|
||||
for filename in files_to_update:
|
||||
filepath = os.path.join(POSTS_DIR, filename)
|
||||
if not os.path.exists(filepath):
|
||||
print(f"File not found: {filename}")
|
||||
continue
|
||||
|
||||
with open(filepath, 'r', encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
|
||||
# Check if url already exists
|
||||
if re.search(r'^url:\s*', content, re.M):
|
||||
# Update existing url
|
||||
content = re.sub(r'^url:\s*.*$', 'url: /podcast', content, flags=re.M)
|
||||
print(f"Updated existing url in {filename}")
|
||||
else:
|
||||
# Add url to frontmatter
|
||||
content = re.sub(r'^---\n', '---\nurl: /podcast\n', content, count=1)
|
||||
print(f"Added url to frontmatter in {filename}")
|
||||
|
||||
with open(filepath, 'w', encoding='utf-8') as f:
|
||||
f.write(content)
|
||||
|
||||
Reference in New Issue
Block a user