fix ProxyConfig type when checking length

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-09-07 12:21:01 +02:00
parent 0c29210b88
commit 28ee4c0a46
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

View File

@ -39,7 +39,7 @@ actionsToolkit.run(
await core.group(`Proxy configuration found`, async () => {
for (const host in dockerConfig.proxies) {
let prefix = '';
if (dockerConfig.proxies.length > 1) {
if (Object.keys(dockerConfig.proxies).length > 1) {
prefix = ' ';
core.info(host);
}