From 4d8bd68c1cacc694e72e86999e7fa6b42c93f2b3 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:58:07 +0200 Subject: [PATCH] docker: fix pull caching Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/docker/docker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docker/docker.ts b/src/docker/docker.ts index 56dbba3..63e4ce9 100644 --- a/src/docker/docker.ts +++ b/src/docker/docker.ts @@ -136,8 +136,8 @@ export class Docker { await Exec.getExecOutput(`docker`, ['pull', image], { ignoreReturnCode: true }).then(res => { - pulled = false; if (res.stderr.length > 0 && res.exitCode != 0) { + pulled = false; const err = res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error'; if (cacheFoundPath) { core.warning(`Failed to pull image, using one from cache: ${err}`);