Releases: rhart/openrewrite-runner-action
Releases · rhart/openrewrite-runner-action
v1.0.0 - Initial Release
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 namesrecipe-parameters- Parameters in formatrecipeName.paramName=valuerecipes-dir- Directory containing recipe YAML files (default:recipes)rewrite-dependencies- Comma-separated OpenRewrite dependenciesjava-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-trueif OpenRewrite made changes,falseotherwiseactivated-recipes- Comma-separated list of activated recipes
See the README for detailed usage examples.