Skip to content

Commit

Permalink
fix: FILE_PATH is a string, not JSON (#41)
Browse files Browse the repository at this point in the history
* fix: FILE_PATH is a string, not JSON

* build: update dist
  • Loading branch information
ojeytonwilliams authored Jun 11, 2024
1 parent 2ba631e commit fdd89a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40132,10 +40132,10 @@ const validate_environment_1 = __nccwpck_require__(1246);
break;
case "lowercase-directories":
if (!process.env.FILE_PATH) {
(0, core_1.setFailed)("Missing file paths.");
(0, core_1.setFailed)("FILE_PATH is required by lowercase-directories.");
break;
}
(0, lowercase_directories_1.lowercaseDirectories)(JSON.parse(process.env.FILE_PATH));
(0, lowercase_directories_1.lowercaseDirectories)(process.env.FILE_PATH);
break;
case "pull-request":
if (!process.env.GH_TOKEN ||
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ import { validateEnvironment } from "./utils/validate-environment";
break;
case "lowercase-directories":
if (!process.env.FILE_PATH) {
setFailed("Missing file paths.");
setFailed("FILE_PATH is required by lowercase-directories.");
break;
}
lowercaseDirectories(JSON.parse(process.env.FILE_PATH));
lowercaseDirectories(process.env.FILE_PATH);
break;
case "pull-request":
if (
Expand Down

0 comments on commit fdd89a4

Please sign in to comment.