diff --git a/download-artifacts/main.js b/download-artifacts/main.js index 4537afdf..7d01c7ed 100644 --- a/download-artifacts/main.js +++ b/download-artifacts/main.js @@ -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) => {