Skip to content

Commit b7b6d3f

Browse files
committed
Switch back to type-safe action bindings
1 parent 8d380cc commit b7b6d3f

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/branches-and-prs.main.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
import io.github.typesafegithub.workflows.actions.actions.Checkout
3131
import io.github.typesafegithub.workflows.actions.actions.Checkout.FetchDepth
32-
import io.github.typesafegithub.workflows.actions.codecov.CodecovAction_Untyped
32+
import io.github.typesafegithub.workflows.actions.codecov.CodecovAction
3333
import io.github.typesafegithub.workflows.actions.testlensapp.SetupTestlens
3434
import io.github.typesafegithub.workflows.domain.Concurrency
3535
import io.github.typesafegithub.workflows.domain.RunnerType
@@ -134,8 +134,8 @@ workflow(
134134
)
135135
uses(
136136
name = "Upload to Codecov.io",
137-
action = CodecovAction_Untyped(
138-
failCiIfError_Untyped = "true"
137+
action = CodecovAction(
138+
failCiIfError = true
139139
)
140140
)
141141
}

.github/workflows/codeql-analysis.main.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424

2525
@file:Repository("https://bindings.krzeminski.it/")
2626
@file:DependsOn("actions:checkout___major:[v6,v7-alpha)")
27-
@file:DependsOn("github:codeql-action__analyze___major:[v4.32.4,v5-alpha)")
28-
@file:DependsOn("github:codeql-action__init___major:[v4.32.4,v5-alpha)")
27+
@file:DependsOn("github:codeql-action__analyze___major:[v4,v5-alpha)")
28+
@file:DependsOn("github:codeql-action__init___major:[v4,v5-alpha)")
2929

3030
import io.github.typesafegithub.workflows.actions.actions.Checkout
31-
import io.github.typesafegithub.workflows.actions.github.CodeqlActionAnalyze_Untyped
32-
import io.github.typesafegithub.workflows.actions.github.CodeqlActionInit_Untyped
31+
import io.github.typesafegithub.workflows.actions.github.CodeqlActionAnalyze
32+
import io.github.typesafegithub.workflows.actions.github.CodeqlActionInit
3333
import io.github.typesafegithub.workflows.domain.Concurrency
3434
import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
3535
import io.github.typesafegithub.workflows.domain.triggers.*
@@ -85,7 +85,7 @@ workflow(
8585
// Initializes the CodeQL tools for scanning
8686
uses(
8787
name = "Initialize CodeQL",
88-
action = CodeqlActionInit_Untyped(
88+
action = CodeqlActionInit(
8989
// Override language selection by uncommenting this and choosing your languages
9090
// languages = listOf("go", "javascript", "csharp", "python", "cpp", "java"),
9191
)
@@ -127,7 +127,7 @@ workflow(
127127
)
128128
uses(
129129
name = "Perform CodeQL Analysis",
130-
action = CodeqlActionAnalyze_Untyped()
130+
action = CodeqlActionAnalyze()
131131
)
132132
}
133133
}

.github/workflows/release.main.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
import io.github.typesafegithub.workflows.actions.actions.Checkout
3030
import io.github.typesafegithub.workflows.actions.actions.Checkout.FetchDepth
31-
import io.github.typesafegithub.workflows.actions.codecov.CodecovAction_Untyped
31+
import io.github.typesafegithub.workflows.actions.codecov.CodecovAction
3232
import io.github.typesafegithub.workflows.domain.RunnerType
3333
import io.github.typesafegithub.workflows.domain.triggers.Push
3434
import io.github.typesafegithub.workflows.dsl.expressions.Contexts.github
@@ -103,8 +103,8 @@ workflow(
103103
)
104104
uses(
105105
name = "Upload to Codecov.io",
106-
action = CodecovAction_Untyped(
107-
failCiIfError_Untyped = "true"
106+
action = CodecovAction(
107+
failCiIfError = true
108108
)
109109
)
110110
}

0 commit comments

Comments
 (0)