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 e14e7cb commit a879824
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions download-artifacts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,7 @@ async function main() {
repo: repo,
run_id: runID,
})

// One artifact, a list of artifacts, or all if `name` input is not specified.
const matchesWithRegex = (stringToTest, regexRule) => {
const escapeSpecialChars = (string) => string.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
const builtRegexRule = "^" + regexRule.split("*").map(escapeSpecialChars).join(".*") + "$"
return new RegExp(builtRegexRule).test(stringToTest)
}

core.info(`ARTIFACTS: ${artifacts}`)
const artifactNames = names.split(",").map(artifactName => artifactName.trim())

const artifactsToDownload = artifacts.filter((artifact) => {
Expand Down

0 comments on commit a879824

Please sign in to comment.