11#! / usr/ bin/ env kotlin
2+ @file:Repository(" https://repo1.maven.org/maven2/" )
23@file:DependsOn(" io.github.typesafegithub:github-workflows-kt:1.13.0" )
4+
5+ @file:Repository(" https://github-workflows-kt-bindings.colman.com.br/binding/" )
6+ @file:DependsOn(" actions:checkout:v4" )
7+ @file:DependsOn(" actions:setup-java:v4" )
8+ @file:DependsOn(" gradle:actions__setup-gradle:v3" )
9+
310@file:Import(" _shared.main.kts" )
411@file:Import(" setup-java.main.kts" )
512@file:Import(" setup-python.main.kts" )
6- @file:Import(" generated/actions/checkout.kt" )
7- @file:Import(" generated/actions/setup-java.kt" )
8- @file:Import(" generated/gradle/actions/setup-gradle.kt" )
913
10- import io.github.typesafegithub.workflows.annotations.ExperimentalClientSideBindings
14+ import io.github.typesafegithub.workflows.actions.actions.Checkout
15+ import io.github.typesafegithub.workflows.actions.actions.SetupJava
16+ import io.github.typesafegithub.workflows.actions.gradle.ActionsSetupGradle
1117import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
1218import io.github.typesafegithub.workflows.domain.RunnerType.Windows2022
1319import io.github.typesafegithub.workflows.domain.triggers.PullRequest
@@ -19,7 +25,6 @@ import io.github.typesafegithub.workflows.yaml.writeToFile
1925
2026val GRADLE_ENCRYPTION_KEY by Contexts .secrets
2127
22- @OptIn(ExperimentalClientSideBindings ::class )
2328workflow(
2429 name = " Build" ,
2530 on = listOf (
@@ -91,10 +96,6 @@ workflow(
9196 runsOn = UbuntuLatest ,
9297 ) {
9398 uses(action = Checkout ())
94- run (
95- name = " Generate action bindings" ,
96- command = " .github/workflows/generate-action-bindings.main.kts" ,
97- )
9899 run (
99100 command = """
100101 find -name *.main.kts -print0 | while read -d ${' $' } '\0' file
@@ -121,10 +122,6 @@ workflow(
121122 ),
122123 )
123124 run (command = " cd .github/workflows" )
124- run (
125- name = " Generate action bindings" ,
126- command = " .github/workflows/generate-action-bindings.main.kts" ,
127- )
128125 run (
129126 name = " Regenerate all workflow YAMLs" ,
130127 command = """
@@ -142,4 +139,4 @@ workflow(
142139 command = " git diff --exit-code ." ,
143140 )
144141 }
145- }.writeToFile(generateActionBindings = true )
142+ }.writeToFile()
0 commit comments