Skip to content

Commit

Permalink
docs: adjust Maven bindings migration guide to API changes (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzema12 committed May 11, 2024
1 parent 9de5e53 commit f094dcb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/user-guide/migrating-to-Maven-based-bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import io.github.typesafegithub.workflows.yaml.writeToFile
workflow(
name = "Build",
on = listOf(PullRequest()),
sourceFile = __FILE__.toPath(),
sourceFile = __FILE__,
) {
job(id = "build", runsOn = UbuntuLatest) {
uses(action = CheckoutV4())
Expand All @@ -34,7 +34,7 @@ workflow(
command = "./gradlew build",
)
}
}.writeToFile()
}
```

`CheckoutV4`, `SetupJavaV3` and `ActionsSetupGradleV3` come with the library - they are shipped together with the DSL.
Expand Down Expand Up @@ -74,7 +74,7 @@ The following changes are required in our example workflow:
workflow(
name = "Build",
on = listOf(PullRequest()),
sourceFile = __FILE__.toPath(),
sourceFile = __FILE__,
) {
job(id = "build", runsOn = UbuntuLatest) {
- uses(action = CheckoutV4())
Expand All @@ -88,7 +88,7 @@ The following changes are required in our example workflow:
command = "./gradlew build",
)
}
}.writeToFile()
}
```

Then regenerate your YAML to ensure there are no changes.
Expand Down

0 comments on commit f094dcb

Please sign in to comment.