File tree Expand file tree Collapse file tree
jit-binding-server/src/main/kotlin/io/github/typesafegithub/workflows/jitbindingserver Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,13 +102,10 @@ private suspend fun ApplicationCall.toBindingArtifacts(refresh: Boolean): Map<St
102102 val actionCoords = parameters.extractActionCoords(extractVersion = true )
103103
104104 logger.info { " ➡️ Requesting ${actionCoords.prettyPrint} " }
105- return if (refresh) {
106- actionCoords.buildVersionArtifacts().also {
107- bindingsCache.put(actionCoords, runCatching { it!! })
108- }
109- } else {
110- bindingsCache.get(actionCoords) { runCatching { actionCoords.buildVersionArtifacts()!! } }.getOrNull()
105+ if (refresh) {
106+ bindingsCache.invalidate(actionCoords)
111107 }
108+ return bindingsCache.get(actionCoords) { runCatching { actionCoords.buildVersionArtifacts()!! } }.getOrNull()
112109}
113110
114111private fun incrementArtifactCounter (
You can’t perform that action at this time.
0 commit comments