From da010dba089119ba48944fa4666541fefe5d7f65 Mon Sep 17 00:00:00 2001 From: Matthew Endsley Date: Sun, 27 Oct 2024 00:08:42 -0700 Subject: [PATCH] Output null instead of string 'false' when image is not found --- dist/index.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4be91bb..b99f257 100644 --- a/dist/index.js +++ b/dist/index.js @@ -109,7 +109,7 @@ function run() { } } finally { - core.setOutput('exists', foundImage); + core.setOutput('exists', foundImage ? 'true' : null); } }); } diff --git a/src/main.ts b/src/main.ts index 68c8d19..4bd744f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -80,7 +80,7 @@ async function run(): Promise { core.setFailed(error) } } finally { - core.setOutput('exists', foundImage) + core.setOutput('exists', foundImage ? 'true' : null) } }