File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import io.github.typesafegithub.workflows.domain.triggers.Cron
2121import io.github.typesafegithub.workflows.domain.triggers.PullRequest
2222import io.github.typesafegithub.workflows.domain.triggers.Push
2323import io.github.typesafegithub.workflows.domain.triggers.Schedule
24- import io.github.typesafegithub.workflows.dsl.expressions.expr
2524import io.github.typesafegithub.workflows.dsl.workflow
2625import it.krzeminski.snakeyaml.engine.kmp.api.Load
2726import kotlinx.serialization.json.JsonArray
@@ -81,11 +80,8 @@ workflow(
8180 uses(action = Checkout ())
8281 run (
8382 name = " Check for actions" ,
84- // TODO: replace this workaround once base_ref can be accessed natively:
85- // https://github.com/typesafegithub/github-workflows-kt/issues/1946
86- env = mapOf (" base_ref" to expr { github.base_ref })
8783 ) {
88- validateTypings(github.sha, System .getenv( " base_ref" ).ifEmpty { null } )
84+ validateTypings(github.sha, github. base_ref)
8985 }
9086 }
9187
Original file line number Diff line number Diff line change 5050 - id : ' step-1'
5151 name : ' Check for actions'
5252 env :
53- base_ref : ' ${{ github.base_ref }}'
5453 GHWKT_GITHUB_CONTEXT_JSON : ' ${{ toJSON(github) }}'
5554 run : ' GHWKT_RUN_STEP='' test.yaml:validate_typings:step-1'' '' .github/workflows/test.main.kts'' '
5655 workflows_consistency_check :
You can’t perform that action at this time.
0 commit comments