Skip to content

Commit f094dcb

Browse files
authored
docs: adjust Maven bindings migration guide to API changes (#1451)
1 parent 9de5e53 commit f094dcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/user-guide/migrating-to-Maven-based-bindings.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import io.github.typesafegithub.workflows.yaml.writeToFile
2323
workflow(
2424
name = "Build",
2525
on = listOf(PullRequest()),
26-
sourceFile = __FILE__.toPath(),
26+
sourceFile = __FILE__,
2727
) {
2828
job(id = "build", runsOn = UbuntuLatest) {
2929
uses(action = CheckoutV4())
@@ -34,7 +34,7 @@ workflow(
3434
command = "./gradlew build",
3535
)
3636
}
37-
}.writeToFile()
37+
}
3838
```
3939

4040
`CheckoutV4`, `SetupJavaV3` and `ActionsSetupGradleV3` come with the library - they are shipped together with the DSL.
@@ -74,7 +74,7 @@ The following changes are required in our example workflow:
7474
workflow(
7575
name = "Build",
7676
on = listOf(PullRequest()),
77-
sourceFile = __FILE__.toPath(),
77+
sourceFile = __FILE__,
7878
) {
7979
job(id = "build", runsOn = UbuntuLatest) {
8080
- uses(action = CheckoutV4())
@@ -88,7 +88,7 @@ The following changes are required in our example workflow:
8888
command = "./gradlew build",
8989
)
9090
}
91-
}.writeToFile()
91+
}
9292
```
9393

9494
Then regenerate your YAML to ensure there are no changes.

0 commit comments

Comments
 (0)