push done with git instead of github

This commit is contained in:
pseusys
2023-03-11 20:15:28 +01:00
parent 7771515605
commit 8eb0910c70
6 changed files with 111 additions and 96 deletions

View File

@@ -163,7 +163,7 @@ async def get_stats() -> str:
if EM.SHOW_LOC_CHART:
await create_loc_graph(yearly_data, GRAPH_PATH)
stats += GHM.update_chart(GRAPH_PATH)
stats += f"**{FM.t('Timeline')}**\n\n{GHM.update_chart('Lines of Code', GRAPH_PATH)}"
if EM.SHOW_UPDATED_DATE:
DBM.i("Adding last updated time...")
@@ -185,11 +185,10 @@ async def main():
stats = await get_stats()
if not EM.DEBUG_RUN:
if GHM.update_readme(stats):
DBM.g("Readme updated!")
GHM.update_readme(stats)
GHM.commit_update()
else:
if GHM.set_github_output(stats):
DBM.g("Debug run, readme not updated. Check the latest comment for the generated stats.")
GHM.set_github_output(stats)
await DM.close_remote_resources()