Skip to content

Commit c5b51f0

Browse files
committed
chore(ci): use action/checkout's version in consistency check jobs from classpath
1 parent df40dfc commit c5b51f0

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/bindings-server.main.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import io.github.typesafegithub.workflows.dsl.JobBuilder
1919
import io.github.typesafegithub.workflows.dsl.expressions.Contexts
2020
import io.github.typesafegithub.workflows.dsl.expressions.expr
2121
import io.github.typesafegithub.workflows.dsl.workflow
22+
import io.github.typesafegithub.workflows.yaml.CheckoutActionVersionSource
2223
import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG
2324
import java.net.URI
2425
import 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
) {

.github/workflows/build.main.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import io.github.typesafegithub.workflows.domain.triggers.Push
2222
import io.github.typesafegithub.workflows.dsl.expressions.Contexts
2323
import io.github.typesafegithub.workflows.dsl.expressions.expr
2424
import io.github.typesafegithub.workflows.dsl.workflow
25+
import io.github.typesafegithub.workflows.yaml.CheckoutActionVersionSource
2526
import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG
2627

2728
val 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
) {

.github/workflows/release.main.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ import io.github.typesafegithub.workflows.domain.triggers.Push
1919
import io.github.typesafegithub.workflows.dsl.JobBuilder
2020
import io.github.typesafegithub.workflows.dsl.expressions.expr
2121
import io.github.typesafegithub.workflows.dsl.workflow
22+
import io.github.typesafegithub.workflows.yaml.CheckoutActionVersionSource
2223
import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG
2324

2425
workflow(
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(

0 commit comments

Comments
 (0)