Skip to content

Commit

Permalink
fix: find first file
Browse files Browse the repository at this point in the history
Signed-off-by: vados <[email protected]>
  • Loading branch information
t3hmrman committed Nov 25, 2024
1 parent 5e44970 commit 780f04e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,8 @@ async function run() {
}
core.info(`Automatically extracted release asset ${asset.name} to ${dest}`);

const bins = fs.readdirSync(finalBinLocation, { withFileTypes: true })
.filter(item => {
console.log("file?", { item, isFile: item.isFile() });
return item.isFile();
})
const bins = fs.readdirSync(finalBinLocation, { recursive: true, withFileTypes: true })
.filter(item => item.isFile())
.map(bin => bin.name);
if (bins.length === 0)
throw new Error(`No files found in ${finalBinLocation}`);
Expand Down

0 comments on commit 780f04e

Please sign in to comment.