@@ -49,7 +49,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
4949exports.outputs = exports.inputs = void 0;
5050exports.inputs = {
5151 GH_TOKEN: 'gh-token',
52- OUTPUT: 'output',
5352 PATHS: 'paths',
5453};
5554exports.outputs = {
@@ -572,22 +571,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
572571 });
573572};
574573Object.defineProperty(exports, "__esModule", ({ value: true }));
575- const fs = __importStar(__nccwpck_require__(7147));
576574const core = __importStar(__nccwpck_require__(5316));
577575const common_1 = __nccwpck_require__(9145);
578576function run() {
579577 return __awaiter(this, void 0, void 0, function* () {
580578 try {
581579 const patterns = (0, common_1.normalizePatterns)(core.getInput(common_1.inputs.PATHS).split(';'));
582580 const token = core.getInput(common_1.inputs.GH_TOKEN, { required: true });
583- const output = core.getInput(common_1.inputs.OUTPUT, { required: true });
584581 console.log('patterns: ' + JSON.stringify(patterns, undefined, 2));
585582 const changedFiles = yield (0, common_1.getChangedFiles)(token);
586583 const filteredFiles = patterns === undefined
587584 ? changedFiles
588585 : changedFiles.filter(({ path }) => (0, common_1.testPath)(path, patterns));
589- (0, common_1.ensureDir)(output);
590- fs.writeFileSync(output, JSON.stringify(filteredFiles.map(({ path }) => ({ filename: path })), undefined, 2));
591586 (0, common_1.setOutputs)({
592587 json: JSON.stringify({
593588 files: filteredFiles,
0 commit comments