openrewrite / rewrite-github-actions

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

Switch from `gradle/wrapper-validation-action` to `gradle/actions/wrapper-validation` #101

Closed timtebeek closed 7 months ago

timtebeek commented 7 months ago

What problem are you trying to solve?

https://github.com/gradle/wrapper-validation-action/releases/tag/v3.3.0

As of v3 this action has been deprecated by gradle/actions/wrapper-validation. Any workflow that uses gradle/wrapper-validation-action@v3 will transparently delegate to gradle/actions/wrapper-validation@v3.

What precondition(s) should be checked before applying this recipe?

Uses gradle/wrapper-validation-action

Describe the situation before applying the recipe

uses: gradle/wrapper-validation-action@v3

Describe the situation after applying the recipe

uses: gradle/actions/wrapper-validation@v3

Any additional context

There are no functional changes in this release. The jump directly to v3 (and v3.3.0) serves 2 purposes:

  • Ensure that users explicitly switch to the new delegating action implementation This upgrade also provides an opportunity for users to switch directly to gradle/actions/wrapper-validation
  • Allows us to have consistent version numbering between gradle/wrapper-validation-action and gradle/actions/wrapper-validation See https://github.com/gradle/wrapper-validation-action/issues/198