Skip to content

Commit d535a48

Browse files
committed
Remove file output
1 parent ddaf203 commit d535a48

File tree

6 files changed

+0
-17
lines changed

6 files changed

+0
-17
lines changed

common/src/constants.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
export const inputs = {
33
GH_TOKEN: 'gh-token',
4-
OUTPUT: 'output',
54
PATHS: 'paths',
65
} as const;
76

get-changed-files/action.yml

-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ inputs:
1111
description: Semicolon separated globs
1212
required: false
1313

14-
output:
15-
description: Output file path
16-
required: true
17-
18-
1914
runs:
2015
using: node16
2116
main: dist/index.js

get-changed-files/dist/index.js

-5
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
4949
exports.outputs = exports.inputs = void 0;
5050
exports.inputs = {
5151
GH_TOKEN: 'gh-token',
52-
OUTPUT: 'output',
5352
PATHS: 'paths',
5453
};
5554
exports.outputs = {
@@ -564,22 +563,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
564563
});
565564
};
566565
Object.defineProperty(exports, "__esModule", ({ value: true }));
567-
const fs = __importStar(__nccwpck_require__(7147));
568566
const core = __importStar(__nccwpck_require__(5316));
569567
const common_1 = __nccwpck_require__(9145);
570568
function 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,

get-changed-files/src/main.ts

-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ async function run(): Promise<void> {
1414
try {
1515
const pathPatterns = core.getInput(inputs.PATHS).split(';');
1616
const token = core.getInput(inputs.GH_TOKEN, { required: true });
17-
const output = core.getInput(inputs.OUTPUT, { required: true });
1817

1918
console.log('patterns: ' + JSON.stringify(pathPatterns, undefined, 2));
2019

@@ -23,9 +22,6 @@ async function run(): Promise<void> {
2322
? changedFiles.filter(({ path }) => testPath(path, pathPatterns))
2423
: changedFiles;
2524

26-
ensureDir(output);
27-
fs.writeFileSync(output, JSON.stringify(filteredFiles.map(({ path }) => ({ filename: path })), undefined, 2));
28-
2925
setOutputs({
3026
json: JSON.stringify({
3127
files: filteredFiles,

pr-filter/dist/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
4949
exports.outputs = exports.inputs = void 0;
5050
exports.inputs = {
5151
GH_TOKEN: 'gh-token',
52-
OUTPUT: 'output',
5352
PATHS: 'paths',
5453
};
5554
exports.outputs = {

verify-version-change/dist/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
4949
exports.outputs = exports.inputs = void 0;
5050
exports.inputs = {
5151
GH_TOKEN: 'gh-token',
52-
OUTPUT: 'output',
5352
PATHS: 'paths',
5453
};
5554
exports.outputs = {

0 commit comments

Comments
 (0)