You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#1667.
In the logic, we were trying to parse version like `v2-beta` into an
integer. We could generally try to do it, but I think there are too
many possible variations to support them, so let's just support
versions that after removing the leading `v`, gives us an integer.
Copy file name to clipboardExpand all lines: action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/typing/TypesProviding.kt
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -80,9 +80,10 @@ private fun ActionCoords.fetchTypingsForOlderVersionFromCatalog(fetchUri: (URI)
80
80
returnnull
81
81
}
82
82
val metadata = yaml.decodeFromString<CatalogMetadata>(metadataYml)
83
+
val requestedVersionAsInt =this.version.versionToIntOrNull() ?:returnnull
Copy file name to clipboardExpand all lines: action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/typing/TypesProvidingTest.kt
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -509,4 +509,32 @@ class TypesProvidingTest :
509
509
)
510
510
}
511
511
}
512
+
513
+
test("non-numeric version is provided and metadata in typing catalog exists") {
0 commit comments