11#! / usr/ bin/ env kotlin
22@file:Repository(" file://~/.m2/repository/" )
3- @file:DependsOn(" io.github.typesafegithub:github-workflows-kt:3.6 .1-SNAPSHOT" )
4- @file:DependsOn(" io.github.typesafegithub:action-updates-checker:3.6 .1-SNAPSHOT" )
3+ @file:DependsOn(" io.github.typesafegithub:github-workflows-kt:3.7 .1-SNAPSHOT" )
4+ @file:DependsOn(" io.github.typesafegithub:action-updates-checker:3.7 .1-SNAPSHOT" )
55@file:Repository(" https://bindings.krzeminski.it" )
6- @file:DependsOn(" actions:checkout:v5 " )
6+ @file:DependsOn(" actions:checkout:v6 " )
77@file:DependsOn(" actions:github-script:v8" )
88@file:DependsOn(" actions:setup-java:v5" )
99@file:DependsOn(" actions:setup-python:v6" )
@@ -28,6 +28,7 @@ import io.github.typesafegithub.workflows.dsl.JobBuilder
2828import io.github.typesafegithub.workflows.dsl.expressions.Contexts
2929import io.github.typesafegithub.workflows.dsl.expressions.expr
3030import io.github.typesafegithub.workflows.dsl.workflow
31+ import io.github.typesafegithub.workflows.yaml.CheckoutActionVersionSource
3132import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG
3233import io.github.typesafegithub.workflows.updates.reportAvailableUpdates
3334import java.time.Instant
@@ -48,9 +49,11 @@ workflow(
4849 PullRequest (),
4950 ),
5051 consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG .copy(
52+ useLocalBindingsServerAsFallback = true ,
5153 env = mapOf (
5254 " GITHUB_TOKEN" to expr(" secrets.GITHUB_TOKEN" )
5355 ),
56+ checkoutActionVersion = CheckoutActionVersionSource .InferFromClasspath (),
5457 additionalSteps = {
5558 publishToMavenLocal()
5659 },
@@ -102,7 +105,7 @@ workflow(
102105 action = CustomAction (
103106 actionOwner = " actions" ,
104107 actionName = " checkout" ,
105- actionVersion = " v5 " ,
108+ actionVersion = " v6 " ,
106109 ),
107110 )
108111
@@ -129,7 +132,7 @@ workflow(
129132 action = object : RegularAction <Action .Outputs >(
130133 actionOwner = " actions" ,
131134 actionName = " checkout" ,
132- actionVersion = " v5 " ,
135+ actionVersion = " v6 " ,
133136 ) {
134137 override fun toYamlArguments () =
135138 linkedMapOf(
@@ -290,6 +293,8 @@ workflow(
290293 PullRequest (),
291294 ),
292295 consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG .copy(
296+ useLocalBindingsServerAsFallback = true ,
297+ checkoutActionVersion = CheckoutActionVersionSource .InferFromClasspath (),
293298 additionalSteps = {
294299 publishToMavenLocal()
295300 },
0 commit comments