Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
skyf0l committed Oct 13, 2023
1 parent 61847cd commit f20881f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,15 @@ async function vercelDeploy(ref, commit) {

const argRegex = /[^\s"']+|"([^"]*)"|'([^']*)'/gm;
const providedArgs = [];
core.info("BEGIN ARGS");
for (const match of vercelArgs.matchAll(argRegex)) {
// This removes the quotes from the captured group if they are present, otherwise it leaves the match as is
providedArgs.push(match[1] ?? match[0]);
core.info("=>", match[1] ?? match[0]);
}
core.info("=> ARGS");
core.info(providedArgs);
core.info("END ARGS");

const args = [
...providedArgs,
Expand Down

0 comments on commit f20881f

Please sign in to comment.