@@ -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 = {
@@ -564,22 +563,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
564563 });
565564};
566565Object.defineProperty(exports, "__esModule", ({ value: true }));
567- const fs = __importStar(__nccwpck_require__(7147));
568566const core = __importStar(__nccwpck_require__(5316));
569567const common_1 = __nccwpck_require__(9145);
570568function run() {
571569 return __awaiter(this, void 0, void 0, function* () {
572570 try {
573571 const pathPatterns = core.getInput(common_1.inputs.PATHS).split(';');
574572 const token = core.getInput(common_1.inputs.GH_TOKEN, { required: true });
575- const output = core.getInput(common_1.inputs.OUTPUT, { required: true });
576573 console.log('patterns: ' + JSON.stringify(pathPatterns, undefined, 2));
577574 const changedFiles = yield (0, common_1.getChangedFiles)(token);
578575 const filteredFiles = pathPatterns.length > 0
579576 ? changedFiles.filter(({ path }) => (0, common_1.testPath)(path, pathPatterns))
580577 : changedFiles;
581- (0, common_1.ensureDir)(output);
582- fs.writeFileSync(output, JSON.stringify(filteredFiles.map(({ path }) => ({ filename: path })), undefined, 2));
583578 (0, common_1.setOutputs)({
584579 json: JSON.stringify({
585580 files: filteredFiles,
0 commit comments