File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,8 +156,8 @@ jobs:
156156 - id : get-files-to-lint
157157 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
158158 env :
159- CHANGED_FILES : ${{ toJSON(steps.changed-files.outputs.all_changed_and_modified_files) }};
160- ACTION_FILES_INPUT : ${{ toJSON(inputs.action-files) }}
159+ CHANGED_FILES : ${{ steps.changed-files.outputs.all_changed_and_modified_files && toJSON(steps.changed-files.outputs.all_changed_and_modified_files) }}
160+ ACTION_FILES_INPUT : ${{ inputs.action-files && toJSON(inputs.action-files) }}
161161 with :
162162 script : |
163163 const fs = require("node:fs");
@@ -166,7 +166,7 @@ jobs:
166166 const changedFiles = process.env.CHANGED_FILES;
167167
168168 let actionFiles = [];
169- if (changedFiles !== null ) {
169+ if (changedFiles) {
170170 actionFiles = changedFiles.split(" ").filter(file => file && fs.existsSync(file));
171171 } else {
172172 const actionFilesInput = process.env.ACTION_FILES_INPUT;
You can’t perform that action at this time.
0 commit comments