Main ¶
Main Runner Script
logger = logging.getLogger(__name__)
module-attribute
¶
WORKSHOP_STATS = os.getenv('INPUT_WORKSHOP_STATS', 'false').lower() in ('true', '1', 't')
module-attribute
¶
__version__ = '1.4.0'
module-attribute
¶
update_readme(repo, markdown_data, start_marker, end_marker)
¶
Updates the README.md file with the provided Markdown content within specified markers
Source code in api/main.py
generate_steam_stats()
¶
Generate Steam Stats and return markdown content
Source code in api/main.py
generate_workshop_stats()
¶
Generate Workshop Stats and return markdown content
Source code in api/main.py
commit_to_github(repo, files_to_update)
¶
Commit files to GitHub Repo
Source code in api/main.py
update_readme_sections(repo, current_content)
¶
Update README sections with Steam and Workshop stats
Source code in api/main.py
update_section(repo, current_content, new_content, start_marker, end_marker)
¶
Update a section of the README using markers
Source code in api/main.py
collect_files_to_update(current_readme, original_readme)
¶
Collect files that needs to be updated
Source code in api/main.py
log_execution_time(start_time)
¶
Log the total execution time
Source code in api/main.py
main()
¶
Main function to run the script
Source code in api/main.py
Source Code ¶
View the complete source code for this module on GitHub: api/main.py