Show HN: A tool to safely migrate GitHub Actions workflows to Ubuntu-slim runner
9 days ago
- #ubuntu-slim
- #GitHub Actions
- #workflow-migration
- ubuntu-slim is a lightweight GitHub Actions runner (1 vCPU / 5 GB RAM, max 15 min runtime) introduced as a cost-efficient alternative to ubuntu-latest.
- gh-slimify is a GitHub CLI extension that automates the migration of eligible jobs from ubuntu-latest to ubuntu-slim.
- Migration eligibility criteria include: jobs must run on ubuntu-latest, not use Docker commands or containers, not use service containers, and have execution times under 15 minutes.
- Jobs are classified into three categories: safe to migrate, can migrate but requires attention, and cannot migrate.
- The tool provides detailed reports on eligible and ineligible jobs, including reasons for ineligibility.
- Setup Action Detection: Jobs using popular setup actions from GitHub Marketplace are considered safe to migrate.
- The tool supports scanning specific workflow files or all workflows in .github/workflows/.
- Auto-fix functionality updates eligible jobs to use ubuntu-slim, with options to include jobs with warnings using the --force flag.
- The tool skips fetching job durations with --skip-duration for faster scans or to avoid API rate limits.
- Debug output can be enabled with the --verbose flag for troubleshooting.