Change GitHub Action

MSAL

Change a GitHub Action in any workflow.

org.openrewrite.github.ChangeAction

Required

Name of the action to match.

Name of the action to use instead.

Optional

Restricts the change by the existing uses: ref. When omitted, the action is changed regardless of how it is pinned (the default; commit SHA pins are rewritten). When set to an empty string, only references that are not pinned to a 40-character commit SHA are changed, leaving deliberate SHA pins on the original action untouched. When set to a specific commit SHA, only references pinned to exactly that SHA are changed.

New version to use. When omitted, preserve the existing ref.

mod run . --recipe=org.openrewrite.github.ChangeAction \ -P oldAction=gradle/wrapper-validation-action \ -P newAction=gradle/actions/wrapper-validation

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.