{"id":37627867,"url":"https://github.com/automa/github-runners","last_synced_at":"2026-01-16T10:52:15.619Z","repository":{"id":249288287,"uuid":"830329323","full_name":"automa/github-runners","owner":"automa","description":"Scheduled bot to change runners in GitHub Actions","archived":false,"fork":false,"pushed_at":"2025-10-29T15:12:25.000Z","size":371,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-29T17:23:36.153Z","etag":null,"topics":["automa","automa-bot","bot"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/automa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-18T04:24:22.000Z","updated_at":"2025-10-29T15:12:29.000Z","dependencies_parsed_at":"2025-01-17T14:41:58.761Z","dependency_job_id":"2b1c296d-bb63-41bb-9946-fda2997903c6","html_url":"https://github.com/automa/github-runners","commit_stats":null,"previous_names":["automa/github-runners"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/automa/github-runners","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automa%2Fgithub-runners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automa%2Fgithub-runners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automa%2Fgithub-runners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automa%2Fgithub-runners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/automa","download_url":"https://codeload.github.com/automa/github-runners/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automa%2Fgithub-runners/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automa","automa-bot","bot"],"created_at":"2026-01-16T10:52:15.514Z","updated_at":"2026-01-16T10:52:15.594Z","avatar_url":"https://github.com/automa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-runners\n\nThis is a [deterministic](https://docs.automa.app/bots/types#deterministic) \u0026 [scheduled](https://docs.automa.app/bots/types#scheduled) [bot](https://docs.automa.app/bots) for [**Automa**](https://automa.app) to migrate GitHub Actions workflow runner labels.\n\n#### Features\n\n- Automatically replaces `runs-on` fields in your GitHub Actions workflows with configured custom runner labels.\n- Supports updating runners in `matrix` strategies and reusable workflows inputs.\n- Ignores non-exact matches and group labels to avoid unintended changes.\n- Configurable via the `UPDATE_MAP` environment variable.\n\n## Getting Started\n\nSince this bot can be further configured, there is no single version of this to be installed on [Automa](https://automa.app) Cloud.\n\n### Self-Hosting\n\nThis bot can be self-hosted. You can follow these steps to get it running.\n\n#### Prerequisites\n\n- Have [`git`](https://git-scm.com/) installed.\n- Have [`node`](https://nodejs.org/) installed.\n\n#### Automa bot\n\n[Register a bot](https://docs.automa.app/bot-development/registration) of [scheduled](https://docs.automa.app/bots/types#scheduled) type on [Automa](https://automa.app) (Cloud or Self-hosted) and point its webhook to your planned server (e.g., `http://your-server-ip:8000/hooks/automa`). Copy the **webhook secret** after it is created.\n\n#### Starting the server\n\n```sh\n# Setup environment variables\nexport NODE_ENV=production\nexport AUTOMA_WEBHOOK_SECRET=your_secret_here\n\n# Configure bot\nexport UPDATE_MAP='{\"ubuntu-24.04\":\"blacksmith-4vcpu-ubuntu-2204\"}'\n\n# Install dependencies \u0026 build\nnpm install\nnpm run build\n\n# Start server\nnode build/index.js\n```\n\n## How It Works\n\n1. **Configuration**: The bot reads its configuration from the `UPDATE_MAP` environment variable. This variable should be a JSON string that maps old runner labels to their new counterparts. For example: `{\"ubuntu-24.04\":\"blacksmith-4vcpu-ubuntu-2204\"}`.\n\n2. **Update Logic**: For each workflow file in `.github/workflows`, the bot reads the content and uses a regular expression to find and replace the runner labels. The key aspects of the update logic are:\n\n   - It replaces all occurrences of the old runner label with the new one.\n   - It automatically handles GitHub's default `*-latest` runners, updating them if a replacement for the corresponding versioned runner is defined in the configuration.\n   - It correctly handles runners defined directly in `runs-on` and those within a `matrix` strategy.\n   - It avoids making changes to runner groups by ignoring labels inside a `group:` key.\n   - It performs an exact match to prevent accidentally updating partial labels.\n\n## Contributing\n\nContributions and feedback are welcome! Feel free to open an issue or submit a pull request. See [CONTRIBUTING.md](CONTRIBUTING.md) for more details. Here is a list of [Contributors](https://github.com/automa/github-runners/contributors).\n\n## LICENSE\n\nMIT\n\n## Bug Reports\n\nReport [here](https://github.com/automa/github-runners/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautoma%2Fgithub-runners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautoma%2Fgithub-runners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautoma%2Fgithub-runners/lists"}