openrewrite / rewrite-github-actions

OpenRewrite recipes for performing GitHub action hygiene and migration tasks.
Apache License 2.0
9 stars 10 forks source link

Append runner #40

Open yeikel opened 1 year ago

yeikel commented 1 year ago

Similar to https://github.com/openrewrite/rewrite-github-actions/issues/25 but it should read the existing list of runners and append to it instead of replacing it.

The intention is so that the user does not need to pass the existing list and to only provide the new runner


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

Output:

jobs:
  build:
    runs-on: MyNewRunner
  other:
    runs-on: [ubuntu-latest,MyNewRunner, SomeOtherRunner]
timtebeek commented 1 year ago

Hope you don't mind I unassigned you @yeikel I want to open this issue back up again to anyone to pick up. Feel free to open up a draft pull request if you'd like to contribute!