From a87982410209a145e9a3a7d7aff07c855b47bc64 Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Thu, 21 Dec 2023 14:35:55 -0500 Subject: [PATCH] Testing --- download-artifacts/main.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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) => {