From c97c4060bdc51e97b1b2a972eab2f77d6ae8e57a Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 7 Sep 2023 12:21:01 +0200 Subject: [PATCH] fix ProxyConfig type when checking length Signed-off-by: CrazyMax --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index f689236..eb5edc9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -48,7 +48,7 @@ actionsToolkit.run( if (dockerConfig && dockerConfig.proxies) { for (const host in dockerConfig.proxies) { let prefix = ''; - if (dockerConfig.proxies.length > 1) { + if (Object.keys(dockerConfig.proxies).length > 1) { prefix = ' '; core.info(host); }