From a1dd7395a779d88eb648311dbc9de60b6be559bc Mon Sep 17 00:00:00 2001 From: "info@pi-farm.de" <6+pi-farm@noreply.git.pi-farm.de> Date: Wed, 28 Oct 2026 15:14:20 +0000 Subject: [PATCH] fix rm.template handling --- .gitea/workflows/build-and-push.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index 65a565d..3c94ca5 100644 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -332,10 +332,15 @@ jobs: import os, sys def process(output_file): - if not os.path.exists(output_file.replace('.md', '.template').replace('.yml', '.template')): + # Hier mappen wir README.md auf deine rm.template + if output_file == "README.md": + template_name = ".gitea/rm.template" if os.path.exists(".gitea/rm.template") else "rm.template" + else: + template_name = output_file.replace('.yml', '.template') + + if not os.path.exists(template_name): return - template_name = output_file.replace('.md', '.template').replace('.yml', '.template') with open(template_name, "r", encoding="utf-8") as f: content = f.read()