From dd414599af41ac474a94641e626750f108f8a30d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciek=20Go=C5=82aszewski?= Date: Fri, 9 Aug 2024 16:18:34 +0200 Subject: [PATCH] fix for exit code (#19) --- .github/workflows/build_rocks.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_rocks.yaml b/.github/workflows/build_rocks.yaml index 0dd43e1..227f2d8 100644 --- a/.github/workflows/build_rocks.yaml +++ b/.github/workflows/build_rocks.yaml @@ -146,7 +146,7 @@ jobs: "runs-on-labels": platformLabels[arch] || [inputs["runs-on"]] } rockMetas.push(meta) - const imageExists = (await exec.getExecOutput('docker', ['manifest', 'inspect', image], {ignoreReturnCode: true}).exitCode) === 0 + const imageExists = (await exec.getExecOutput('docker', ['manifest', 'inspect', image], {ignoreReturnCode: true})).exitCode === 0 if (isPullRequest && (changesPaths.includes(`${rockPath}/rockcraft.yaml`) || !imageExists)) { changedMetas.push(meta) } else if (!isPullRequest) { @@ -167,7 +167,7 @@ jobs: "runs-on-labels": platformLabels[defaultArch] || [inputs["runs-on"]] }; rockMetas.push(meta) - const imageExists = (await exec.getExecOutput('docker', ['manifest', 'inspect', image], {ignoreReturnCode: true}).exitCode) === 0 + const imageExists = (await exec.getExecOutput('docker', ['manifest', 'inspect', image], {ignoreReturnCode: true})).exitCode === 0 if (isPullRequest && (changesPaths.includes(`${rockPath}/rockcraft.yaml`) || !imageExists)) { changedMetas.push(meta) } else if (!isPullRequest) {