Skip to content

Releases: rhart/openrewrite-runner-action

v1.0.0 - Initial Release

03 Dec 14:55
a44f884

Choose a tag to compare

OpenRewrite Runner Action v1.0.0

This is the initial release of the OpenRewrite Runner Action, a GitHub Action that runs OpenRewrite recipes without requiring build tool configuration in your repository.

Features

  • No Build Tools Required - Target repositories don't need Maven, Gradle, or any build configuration
  • Temporary Setup - Gradle is added only during execution, then completely removed
  • Parameterized Recipes - Pass runtime parameters to recipes using namespaced format
  • Recipe Discovery - Automatically searches for recipes in subdirectories
  • Clean Execution - Only your code changes remain after the action completes

Quick Start

- name: Run OpenRewrite
  uses: rhart/openrewrite-runner-action@v1.0.0
  with:
    recipes: 'com.example.MyRecipe'
    recipes-dir: 'recipes'
    rewrite-dependencies: 'org.openrewrite:rewrite-yaml:8.66.3'

Inputs

  • recipes (required) - Comma-separated recipe names
  • recipe-parameters - Parameters in format recipeName.paramName=value
  • recipes-dir - Directory containing recipe YAML files (default: recipes)
  • rewrite-dependencies - Comma-separated OpenRewrite dependencies
  • java-version - Java version to use (default: 17)
  • gradle-version - Gradle version to use (default: 9.2.0)
  • openrewrite-version - OpenRewrite plugin version (default: 7.20.0)
  • working-directory - Working directory for running OpenRewrite (default: .)

Outputs

  • changes-detected - true if OpenRewrite made changes, false otherwise
  • activated-recipes - Comma-separated list of activated recipes

See the README for detailed usage examples.