Skip to content

Commit

Permalink
Fix ENOENT errors when using directories action input
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Apr 18, 2024
1 parent 21c9fcb commit f26ae2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@noelware/s3-action",
"description": "☕ Simple and fast GitHub Action to upload objects to Amazon S3 easily",
"version": "2.2.4",
"version": "2.2.5",
"type": "module",
"author": "Noel Towa <[email protected]>",
"private": true,
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { basename } from 'node:path';
import { readdir } from 'node:fs/promises';
import { resolve } from 'path';
import { lstat } from 'node:fs/promises';
import { EOL } from 'node:os';

async function main() {
const config = await inferOptions();
Expand All @@ -56,7 +57,7 @@ async function main() {
continue;
}

const files = await readdir(d);
const files = await readdir(d).then((files) => files.map((s) => `${d}${EOL}${s}`));
for (const file of files) {
const filename = basename(file);
if (excluded.includes(filename)) continue;
Expand Down

0 comments on commit f26ae2d

Please sign in to comment.