Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrassia committed Dec 21, 2023
1 parent ffdcf4b commit 2533529
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion download-artifacts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,15 @@ async function main() {
return artifactNames.map(name => matchesWithRegex(artifact.name, name)).reduce((prevValue, currValue) => prevValue || currValue)
})

core.info(`TESTING: ${artifactsToDownload}`)
core.info("BEGIN TEST OUTPUT")
for (const artifact of artifactsToDownload) {
core.info("==> Artifact ID:", artifact.id)
core.info("==> Artifact Name:", artifact.name)
const size = filesize(artifact.size_in_bytes, { base: 10 })
core.info("==> Artifact Size:", artifact.size)
core.info("")
}
core.info("END TEST OUTPUT")

// One artifact if 'name' input is specified, one or more if `name` is a regular expression, all otherwise.
if (names) {
Expand Down

0 comments on commit 2533529

Please sign in to comment.