Skip to content

Commit

Permalink
debug js
Browse files Browse the repository at this point in the history
  • Loading branch information
yhtang committed Sep 6, 2023
1 parent a2c475a commit 067b344
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/_publish_badge_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ jobs:
const filesInDirectory = await fs.readdir('.');
const pattern = new RegExp('${{ inputs.BADGE_FILES }}');
const matchingFiles = filesInDirectory.filter(
filename => filename.match(pattern)
filename => {
console.log(filename, pattern, filename.match(pattern));
return filename.match(pattern);
}
);
const filesToCreate = await Promise.all(
matchingFiles.map(
Expand Down

0 comments on commit 067b344

Please sign in to comment.