use_profile_readme_action()
Write a GitHub Action that rebuilds the profile README on a schedule.
Usage
use_profile_readme_action(
cron="0 6 * * 0", repo="mjfrigaard/hubbub", path=".", overwrite=False
)Creates .github/workflows/profile-readme.yaml. The workflow installs hubbub with uv, runs build_readme.py, and commits README.md and any GIFs that changed. It also runs on manual dispatch.
Parameters
cron: str = "0 6 * * 0"-
Cron schedule. The default,
"0 6 * * 0", is Sundays at 06:00 UTC. repo: str = "mjfrigaard/hubbub"-
GitHub
owner/nameto install hubbub from. path: str or pathlib.Path = "."-
Repo root to write into.
overwrite: bool = False- Replace an existing workflow file.
Returns
pathlib.Path- Path to the workflow file.
Raises
FileExistsError-
If the file exists and
overwriteisFalse.