From fa2f5f1cc07f8bfcffae457461bf2c10c3364988 Mon Sep 17 00:00:00 2001 From: OmriSteiner <51128928+OmriSteiner@users.noreply.github.com> Date: Tue, 30 Aug 2022 15:53:20 +0300 Subject: [PATCH] add artifacts to output (#189) --- action.yml | 2 ++ main.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/action.yml b/action.yml index 1bc57547..84d097fe 100644 --- a/action.yml +++ b/action.yml @@ -78,6 +78,8 @@ outputs: description: Boolean output which is true if the dry run was successful and false otherwise found_artifact: description: Boolean output which is true if the artifact was found and false otherwise + artifacts: + description: JSON array with details about found artifacts runs: using: node16 main: main.js diff --git a/main.js b/main.js index a00ea4cf..365d8edd 100644 --- a/main.js +++ b/main.js @@ -161,6 +161,8 @@ async function main() { artifacts = filtered } + core.setOutput("artifacts", artifacts) + if (dryRun) { if (artifacts.length == 0) { core.setOutput("dry_run", false)