fix(workflow): [2f488f42] Mache git commit bedingt nur bei Änderungen
This commit is contained in:
@@ -694,6 +694,12 @@ def report_status_to_notion(
|
|||||||
subprocess.run(["git", "add", "."], check=True)
|
subprocess.run(["git", "add", "."], check=True)
|
||||||
print("✅ Alle Änderungen gestaged (git add .).")
|
print("✅ Alle Änderungen gestaged (git add .).")
|
||||||
|
|
||||||
|
# Prüfen, ob es Änderungen zum Committen gibt
|
||||||
|
git_status_output = subprocess.run(["git", "status", "--porcelain"], capture_output=True, text=True, check=True).stdout.strip()
|
||||||
|
if not git_status_output:
|
||||||
|
print("⚠️ Keine Änderungen zum Committen gefunden. Überspringe git commit.")
|
||||||
|
return # Beende die Funktion, da nichts zu tun ist
|
||||||
|
|
||||||
# Commit-Nachricht erstellen
|
# Commit-Nachricht erstellen
|
||||||
commit_subject = actual_summary.splitlines()[0] if actual_summary else "Notion Status Update"
|
commit_subject = actual_summary.splitlines()[0] if actual_summary else "Notion Status Update"
|
||||||
commit_message = f"[{task_id.split('-')[0]}] {commit_subject}\n\n{actual_summary}"
|
commit_message = f"[{task_id.split('-')[0]}] {commit_subject}\n\n{actual_summary}"
|
||||||
|
|||||||
Reference in New Issue
Block a user