openrewrite / openrewrite/rewrite-github-actions

Use runner groups and labels

Open
#26 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

recipe
Dominant language
Java
Stars
1
Forks
9
Avg merge
5h 27m
Merged PRs (30d)
12

Description

This recipe should remove the individual runner and use the runner group instead. It should also have the label property as an optional parameter

jobs:
  build:
    runs-on: ubuntu-latest
  other:
    runs-on: ubuntu-latest

Input to the recipe:

Job : jobs.build
Group : ubuntu-runners
Labels: labels: ubuntu-20.04-16core

Output:

jobs:
  build:
    group: ubuntu-runners
    labels: ubuntu-20.04-16core
  other:
    runs-on: ubuntu-latest

More info: https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job#choosing-runners-in-a-group

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the recipe entry point that transforms a job's runs-on configuration, then inspect nearby recipe tests for the expected YAML representation. Use the issue's input and output examples and the linked GitHub Actions runner-group documentation as acceptance criteria, including support for an optional labels value.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, java
Domain
ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.