File tree Expand file tree Collapse file tree 9 files changed +14
-5
lines changed
Expand file tree Collapse file tree 9 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import io.github.typesafegithub.workflows.dsl.JobBuilder
1919import io.github.typesafegithub.workflows.dsl.expressions.Contexts
2020import io.github.typesafegithub.workflows.dsl.expressions.expr
2121import io.github.typesafegithub.workflows.dsl.workflow
22+ import io.github.typesafegithub.workflows.yaml.CheckoutActionVersionSource
2223import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG
2324import java.net.URI
2425import java.net.ConnectException
@@ -43,6 +44,7 @@ workflow(
4344 ),
4445 consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG .copy(
4546 useLocalBindingsServerAsFallback = true ,
47+ checkoutActionVersion = CheckoutActionVersionSource .InferFromClasspath (),
4648 ),
4749 sourceFile = __FILE__ ,
4850) {
Original file line number Diff line number Diff line change 1818 steps :
1919 - id : ' step-0'
2020 name : ' Check out'
21- uses : ' actions/checkout@v4 '
21+ uses : ' actions/checkout@v5 '
2222 - id : ' step-1'
2323 name : ' Execute script'
2424 continue-on-error : true
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import io.github.typesafegithub.workflows.domain.triggers.Push
2222import io.github.typesafegithub.workflows.dsl.expressions.Contexts
2323import io.github.typesafegithub.workflows.dsl.expressions.expr
2424import io.github.typesafegithub.workflows.dsl.workflow
25+ import io.github.typesafegithub.workflows.yaml.CheckoutActionVersionSource
2526import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG
2627
2728val GRADLE_ENCRYPTION_KEY by Contexts .secrets
@@ -34,6 +35,7 @@ workflow(
3435 ),
3536 consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG .copy(
3637 useLocalBindingsServerAsFallback = true ,
38+ checkoutActionVersion = CheckoutActionVersionSource .InferFromClasspath (),
3739 ),
3840 sourceFile = __FILE__ ,
3941) {
Original file line number Diff line number Diff line change 1515 steps :
1616 - id : ' step-0'
1717 name : ' Check out'
18- uses : ' actions/checkout@v4 '
18+ uses : ' actions/checkout@v5 '
1919 - id : ' step-1'
2020 name : ' Execute script'
2121 continue-on-error : true
Original file line number Diff line number Diff line change 1515 steps :
1616 - id : ' step-0'
1717 name : ' Check out'
18- uses : ' actions/checkout@v4 '
18+ uses : ' actions/checkout@v5 '
1919 - id : ' step-1'
2020 name : ' Set up JDK'
2121 uses : ' actions/setup-java@v5'
Original file line number Diff line number Diff line change @@ -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
@@ -51,6 +52,7 @@ workflow(
5152 env = mapOf (
5253 " GITHUB_TOKEN" to expr(" secrets.GITHUB_TOKEN" )
5354 ),
55+ checkoutActionVersion = CheckoutActionVersionSource .InferFromClasspath (),
5456 additionalSteps = {
5557 publishToMavenLocal()
5658 },
@@ -290,6 +292,7 @@ workflow(
290292 PullRequest (),
291293 ),
292294 consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG .copy(
295+ checkoutActionVersion = CheckoutActionVersionSource .InferFromClasspath (),
293296 additionalSteps = {
294297 publishToMavenLocal()
295298 },
Original file line number Diff line number Diff line change 1717 steps :
1818 - id : ' step-0'
1919 name : ' Check out'
20- uses : ' actions/checkout@v4 '
20+ uses : ' actions/checkout@v5 '
2121 - id : ' step-1'
2222 name : ' Set up JDK'
2323 uses : ' actions/setup-java@v5'
Original file line number Diff line number Diff line change @@ -19,13 +19,15 @@ import io.github.typesafegithub.workflows.domain.triggers.Push
1919import io.github.typesafegithub.workflows.dsl.JobBuilder
2020import io.github.typesafegithub.workflows.dsl.expressions.expr
2121import io.github.typesafegithub.workflows.dsl.workflow
22+ import io.github.typesafegithub.workflows.yaml.CheckoutActionVersionSource
2223import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG
2324
2425workflow(
2526 name = " Release" ,
2627 on = listOf (Push (tags = listOf (" v*.*.*" ))),
2728 consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG .copy(
2829 useLocalBindingsServerAsFallback = true ,
30+ checkoutActionVersion = CheckoutActionVersionSource .InferFromClasspath (),
2931 ),
3032 sourceFile = __FILE__ ,
3133 env = mapOf (
Original file line number Diff line number Diff line change 1919 steps :
2020 - id : ' step-0'
2121 name : ' Check out'
22- uses : ' actions/checkout@v4 '
22+ uses : ' actions/checkout@v5 '
2323 - id : ' step-1'
2424 name : ' Execute script'
2525 continue-on-error : true
You can’t perform that action at this time.
0 commit comments