@@ -49,7 +49,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
49
49
exports.outputs = exports.inputs = void 0;
50
50
exports.inputs = {
51
51
GH_TOKEN: 'gh-token',
52
- OUTPUT: 'output',
53
52
PATHS: 'paths',
54
53
};
55
54
exports.outputs = {
@@ -572,22 +571,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
572
571
});
573
572
};
574
573
Object.defineProperty(exports, "__esModule", ({ value: true }));
575
- const fs = __importStar(__nccwpck_require__(7147));
576
574
const core = __importStar(__nccwpck_require__(5316));
577
575
const common_1 = __nccwpck_require__(9145);
578
576
function run() {
579
577
return __awaiter(this, void 0, void 0, function* () {
580
578
try {
581
579
const patterns = (0, common_1.normalizePatterns)(core.getInput(common_1.inputs.PATHS).split(';'));
582
580
const token = core.getInput(common_1.inputs.GH_TOKEN, { required: true });
583
- const output = core.getInput(common_1.inputs.OUTPUT, { required: true });
584
581
console.log('patterns: ' + JSON.stringify(patterns, undefined, 2));
585
582
const changedFiles = yield (0, common_1.getChangedFiles)(token);
586
583
const filteredFiles = patterns === undefined
587
584
? changedFiles
588
585
: 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));
591
586
(0, common_1.setOutputs)({
592
587
json: JSON.stringify({
593
588
files: filteredFiles,
0 commit comments