File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
jit-binding-server/src/main/kotlin/io/github/typesafegithub/workflows/jitbindingserver Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -102,13 +102,10 @@ private suspend fun ApplicationCall.toBindingArtifacts(refresh: Boolean): Map<St
102
102
val actionCoords = parameters.extractActionCoords(extractVersion = true )
103
103
104
104
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)
111
107
}
108
+ return bindingsCache.get(actionCoords) { runCatching { actionCoords.buildVersionArtifacts()!! } }.getOrNull()
112
109
}
113
110
114
111
private fun incrementArtifactCounter (
You can’t perform that action at this time.
0 commit comments