Skip to content

Commit 7de7503

Browse files
authored
Skip validating action with no major version branch/tag (#48)
1 parent e8180d4 commit 7de7503

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/test.main.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ private data class ActionCoords(
9595
)
9696

9797
private fun checkInputAndOutputNames() {
98+
val notValidatedActions: List<(ActionCoords) -> Boolean> = listOf(
99+
// Doesn't have a major version branch/tag, and we keep the typings by the major version
100+
{ it.owner == "DamianReeves" && it.name == "write-file-action" },
101+
)
102+
103+
98104
val actionsWithYamlExtension = Files.walk(Path("typings"))
99105
.filter { it.name == "action-types.yaml" }
100106
.toList()
@@ -121,6 +127,12 @@ private fun checkInputAndOutputNames() {
121127
for (action in actions) {
122128
println()
123129
println("\uFE0F For https://github.com/${action.owner}/${action.name}/tree/${action.version}/${action.path ?: ""}")
130+
131+
if (notValidatedActions.any { predicate -> predicate(action) }) {
132+
println("Skipping...")
133+
continue
134+
}
135+
124136
val typings = loadTypings(path = action.pathToTypings)
125137
val typingsInputs = if ("inputs" in typings) (typings["inputs"] as Map<String, Any>).keys else emptySet()
126138
val typingsOutputs = if ("outputs" in typings) (typings["outputs"] as Map<String, Any>).keys else emptySet()

0 commit comments

Comments
 (0)