openrewrite / rewrite-github-actions

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

Recipe - Replace runners #25

Closed yeikel closed 1 year ago

yeikel commented 1 year ago

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

Input to the recipe:

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

Ideally, and to avoid creating another recipe, it should support adding multiple runners:

jobs:
  build:
    runs-on:  [MyNewRunner1,MyNewRunner2]