Consolidate scheduled dependency updates into a single workflow
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
Consolidate scheduled dependency update workflows into a single workflow with multiple jobs. Currently update_h5p.yml runs on its own schedule; Dependabot handles pip and GitHub Actions updates monthly. Pre-commit hook versions (.pre-commit-config.yaml) aren't covered by either.
Complexity: Low Target branch: develop
The Change
Refactor update_h5p.yml into a general dependency_updates.yml workflow running on a monthly schedule at 00:00 UTC (matching Dependabot on develop). Structure it as independent jobs:
- H5P update job — the existing H5P update logic, moved as-is
- Pre-commit hook update job — runs
prek autoupdate, commits the changes to.pre-commit-config.yaml, then runsprek run --all-filesand commits any resulting formatting changes as a separate commit. Opens a PR viapeter-evans/create-pull-requestusing the LE_BOT app token
Each job opens its own PR with a descriptive branch name and message, following the same pattern as the existing H5P job.
Out of Scope
- Changing the Dependabot configuration or schedule
- Updating pre-commit hook versions (that's what the workflow will do automatically)
Acceptance Criteria
- [ ]
update_h5p.ymlrenamed/refactored into a generaldependency_updates.yml - [ ] Existing H5P update logic preserved as its own job
- [ ] New pre-commit hook update job runs
prek autoupdateand commits the result - [ ] Pre-commit hook update job runs
prek run --all-filesafter updating and commits any formatting changes separately - [ ] Both jobs open PRs via
peter-evans/create-pull-requestusing the LE_BOT app token - [ ] Workflow runs monthly at 00:00 UTC
- [ ]
workflow_dispatchsupported for manual triggering - [ ] Jobs are independent — one failing does not block the other
References
- https://github.com/learningequality/kolibri/pull/14457 — uv migration PR that adds yamlfmt and actionlint to pre-commit config
AI usage
This issue was drafted collaboratively with Claude Code based on a discussion about automating pre-commit hook updates to complement Dependabot.
Plan: Replace update_h5p.yml with a consolidated dependency_updates.yml that runs both the existing H5P update and a new pre-commit hook update job on a monthly schedule.
- [ ] Create
dependency_updates.ymlwith the H5P job - [ ] Add
update-precommit-hooksjob - [ ] Delete
update_h5p.yml
@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
How was this generated?
- Implemented code following the pre-approved plan using test-driven development (red-green-refactor)
- Ran the project's full test suite and linter before committing
- For UI changes: captured live screenshots to verify rendering
- For backend changes: verified with example API/CLI output