@@ -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 = {
@@ -564,22 +563,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
564
563
});
565
564
};
566
565
Object.defineProperty(exports, "__esModule", ({ value: true }));
567
- const fs = __importStar(__nccwpck_require__(7147));
568
566
const core = __importStar(__nccwpck_require__(5316));
569
567
const common_1 = __nccwpck_require__(9145);
570
568
function run() {
571
569
return __awaiter(this, void 0, void 0, function* () {
572
570
try {
573
571
const pathPatterns = core.getInput(common_1.inputs.PATHS).split(';');
574
572
const token = core.getInput(common_1.inputs.GH_TOKEN, { required: true });
575
- const output = core.getInput(common_1.inputs.OUTPUT, { required: true });
576
573
console.log('patterns: ' + JSON.stringify(pathPatterns, undefined, 2));
577
574
const changedFiles = yield (0, common_1.getChangedFiles)(token);
578
575
const filteredFiles = pathPatterns.length > 0
579
576
? changedFiles.filter(({ path }) => (0, common_1.testPath)(path, pathPatterns))
580
577
: changedFiles;
581
- (0, common_1.ensureDir)(output);
582
- fs.writeFileSync(output, JSON.stringify(filteredFiles.map(({ path }) => ({ filename: path })), undefined, 2));
583
578
(0, common_1.setOutputs)({
584
579
json: JSON.stringify({
585
580
files: filteredFiles,
0 commit comments