Skip to content

Commit

Permalink
add artifacts to output (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmriSteiner committed Aug 30, 2022
1 parent 7847792 commit fa2f5f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Expand Up @@ -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
2 changes: 2 additions & 0 deletions main.js
Expand Up @@ -161,6 +161,8 @@ async function main() {
artifacts = filtered
}

core.setOutput("artifacts", artifacts)

if (dryRun) {
if (artifacts.length == 0) {
core.setOutput("dry_run", false)
Expand Down

0 comments on commit fa2f5f1

Please sign in to comment.