Skip to content

Commit 15942ab

Browse files
authored
Fix checkInputAndOutputNames execution on Windows (#43)
1 parent 0787522 commit 15942ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/test.main.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import java.net.URI
2121
import java.nio.file.Files
2222
import java.util.Collections.emptySet
2323
import kotlin.io.path.Path
24+
import kotlin.io.path.invariantSeparatorsPathString
2425
import kotlin.io.path.name
2526

2627
workflow(
@@ -97,14 +98,14 @@ private fun checkInputAndOutputNames() {
9798
val actions = Files.walk(Path("typings"))
9899
.filter { it.name in setOf("action-types.yml", "action-types.yaml") }
99100
.map {
100-
val (_, owner, name, version, pathAndYaml) = it.toString().split("/", limit = 5)
101+
val (_, owner, name, version, pathAndYaml) = it.invariantSeparatorsPathString.split("/", limit = 5)
101102
val path = if ("/" in pathAndYaml) pathAndYaml.substringBeforeLast("/") else null
102103
ActionCoords(
103104
owner = owner,
104105
name = name,
105106
version = version,
106107
path = path,
107-
pathToTypings = it.toString(),
108+
pathToTypings = it.invariantSeparatorsPathString,
108109
)
109110
}
110111

0 commit comments

Comments
 (0)