File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import io.github.typesafegithub.workflows.domain.triggers.Cron
21
21
import io.github.typesafegithub.workflows.domain.triggers.PullRequest
22
22
import io.github.typesafegithub.workflows.domain.triggers.Push
23
23
import io.github.typesafegithub.workflows.domain.triggers.Schedule
24
- import io.github.typesafegithub.workflows.dsl.expressions.expr
25
24
import io.github.typesafegithub.workflows.dsl.workflow
26
25
import it.krzeminski.snakeyaml.engine.kmp.api.Load
27
26
import kotlinx.serialization.json.JsonArray
@@ -81,11 +80,8 @@ workflow(
81
80
uses(action = Checkout ())
82
81
run (
83
82
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 })
87
83
) {
88
- validateTypings(github.sha, System .getenv( " base_ref" ).ifEmpty { null } )
84
+ validateTypings(github.sha, github. base_ref)
89
85
}
90
86
}
91
87
Original file line number Diff line number Diff line change 50
50
- id : ' step-1'
51
51
name : ' Check for actions'
52
52
env :
53
- base_ref : ' ${{ github.base_ref }}'
54
53
GHWKT_GITHUB_CONTEXT_JSON : ' ${{ toJSON(github) }}'
55
54
run : ' GHWKT_RUN_STEP='' test.yaml:validate_typings:step-1'' '' .github/workflows/test.main.kts'' '
56
55
workflows_consistency_check :
You can’t perform that action at this time.
0 commit comments