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 47d5369e0b
commit c97c4060bd
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7

View file

@ -48,7 +48,7 @@ actionsToolkit.run(
if (dockerConfig && dockerConfig.proxies) { if (dockerConfig && dockerConfig.proxies) {
for (const host in dockerConfig.proxies) { for (const host in dockerConfig.proxies) {
let prefix = ''; let prefix = '';
if (dockerConfig.proxies.length > 1) { if (Object.keys(dockerConfig.proxies).length > 1) {
prefix = ' '; prefix = ' ';
core.info(host); core.info(host);
} }