File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import io.github.typesafegithub.workflows.yaml.writeToFile
2323workflow(
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
9494Then regenerate your YAML to ensure there are no changes.
You can’t perform that action at this time.
0 commit comments