Skip README update when language stats are unchanged

This commit is contained in:
Mark Eaton committed 2026-10-29 20:25:56 -04:00
1 parent 38361a6e4a
commit 3d90f922c6
1 file changed
+3 -1
+3 -1
View File
@@ -295,8 +295,10 @@ def main() -> int:
# Fetch current README, update it, and push # Fetch current README, update it, and push
readme_content, readme_sha = fetch_readme(session) readme_content, readme_sha = fetch_readme(session)
updated_readme = replace_between_markers(readme_content, markdown) updated_readme = replace_between_markers(readme_content, markdown)
if updated_readme == readme_content:
print("Language stats unchanged. Skipping README update.", file=sys.stderr)
else:
update_readme(session, updated_readme, readme_sha) update_readme(session, updated_readme, readme_sha)
print("README.md updated successfully.", file=sys.stderr) print("README.md updated successfully.", file=sys.stderr)
# Save current state for next run # Save current state for next run