File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 11#! / usr/ bin/ env kotlin
22@file:Repository(" https://repo1.maven.org/maven2/" )
3- @file:DependsOn(" io.github.typesafegithub:github-workflows-kt:1.15 .0" )
3+ @file:DependsOn(" io.github.typesafegithub:github-workflows-kt:2.3 .0" )
44
5- @file:Repository(" https://github-workflows-kt- bindings.colman.com.br/binding/ " )
5+ @file:Repository(" https://bindings.krzeminski.it " )
66@file:DependsOn(" actions:checkout:v4" )
77@file:DependsOn(" gradle:actions__setup-gradle:v3" )
88
@@ -12,15 +12,14 @@ import io.github.typesafegithub.workflows.domain.RunnerType
1212import io.github.typesafegithub.workflows.domain.triggers.PullRequest
1313import io.github.typesafegithub.workflows.domain.triggers.Push
1414import io.github.typesafegithub.workflows.dsl.workflow
15- import io.github.typesafegithub.workflows.yaml.writeToFile
1615
1716workflow(
1817 name = " Build" ,
1918 on = listOf (
2019 Push (branches = listOf (" main" )),
2120 PullRequest (),
2221 ),
23- sourceFile = __FILE__ .toPath() ,
22+ sourceFile = __FILE__ ,
2423) {
2524 job(
2625 id = " build" ,
@@ -30,4 +29,4 @@ workflow(
3029 uses(action = ActionsSetupGradle ())
3130 run (command = " ./gradlew build" )
3231 }
33- }.writeToFile()
32+ }
Original file line number Diff line number Diff line change 11#! / usr/ bin/ env kotlin
22@file:Repository(" https://repo1.maven.org/maven2/" )
3- @file:DependsOn(" io.github.typesafegithub:github-workflows-kt:1.15 .0" )
3+ @file:DependsOn(" io.github.typesafegithub:github-workflows-kt:2.3 .0" )
44
5- @file:Repository(" https://github-workflows-kt- bindings.colman.com.br/binding/ " )
5+ @file:Repository(" https://bindings.krzeminski.it " )
66@file:DependsOn(" actions:checkout:v4" )
77@file:DependsOn(" gradle:actions__setup-gradle:v3" )
88@file:DependsOn(" actions:configure-pages:v5" )
@@ -20,12 +20,11 @@ import io.github.typesafegithub.workflows.domain.Permission
2020import io.github.typesafegithub.workflows.domain.RunnerType
2121import io.github.typesafegithub.workflows.domain.triggers.Push
2222import io.github.typesafegithub.workflows.dsl.workflow
23- import io.github.typesafegithub.workflows.yaml.writeToFile
2423
2524workflow(
2625 name = " Deploy" ,
2726 on = listOf (Push (branches = listOf (" main" ))),
28- sourceFile = __FILE__ .toPath() ,
27+ sourceFile = __FILE__ ,
2928 permissions = mapOf (
3029 Permission .Contents to Mode .Read ,
3130 Permission .Pages to Mode .Write ,
@@ -49,4 +48,4 @@ workflow(
4948 ))
5049 uses(action = DeployPages ())
5150 }
52- }.writeToFile()
51+ }
You can’t perform that action at this time.
0 commit comments