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 c89e2d8 commit 2460830
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions download-artifacts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,22 +176,14 @@ async function main() {
repo: repo,
run_id: runID,
})
core.info("BEGIN TEST OUTPUT")
for (const artifact of artifacts) {
core.info(`${JSON.stringify(artifact)}`)
}
core.info("END TEST OUTPUT")
const artifactNames = names.split(",").map(artifactName => artifactName.trim())

const artifactNames = names.split(",").map(artifactName => artifactName.trim())
const artifactsToDownload = artifacts.filter((artifact) => {
return artifactNames.includes(artifact.name)
})

core.info("BEGIN TEST OUTPUT")
for (const artifact of artifactsToDownload) {
core.info(`${JSON.stringify(artifact)}`)
}
core.info("END TEST OUTPUT")
core.info(`names: ${names.constructor === Array}`)
core.info(`artifactNames: ${artifactNames.constructor === Array}`)
core.info(`artifactsToDownload: ${artifactsToDownload.constructor === Array}`)

// 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 2460830

Please sign in to comment.