Skip to content

Commit bc41669

Browse files
committed
Remove file output
1 parent ab94fb0 commit bc41669

File tree

6 files changed

+0
-19
lines changed

6 files changed

+0
-19
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 = {
@@ -572,22 +571,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
572571
});
573572
};
574573
Object.defineProperty(exports, "__esModule", ({ value: true }));
575-
const fs = __importStar(__nccwpck_require__(7147));
576574
const core = __importStar(__nccwpck_require__(5316));
577575
const common_1 = __nccwpck_require__(9145);
578576
function 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,

get-changed-files/src/main.ts

-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import * as fs from 'fs';
21
import * as core from '@actions/core';
32

43
import {
54
inputs,
65
getChangedFiles,
7-
ensureDir,
86
setOutputs,
97
testPath,
108
normalizePatterns,
@@ -15,7 +13,6 @@ async function run(): Promise<void> {
1513
try {
1614
const patterns = normalizePatterns(core.getInput(inputs.PATHS).split(';'));
1715
const token = core.getInput(inputs.GH_TOKEN, { required: true });
18-
const output = core.getInput(inputs.OUTPUT, { required: true });
1916

2017
console.log('patterns: ' + JSON.stringify(patterns, undefined, 2));
2118

@@ -24,9 +21,6 @@ async function run(): Promise<void> {
2421
? changedFiles
2522
: changedFiles.filter(({ path }) => testPath(path, patterns));
2623

27-
ensureDir(output);
28-
fs.writeFileSync(output, JSON.stringify(filteredFiles.map(({ path }) => ({ filename: path })), undefined, 2));
29-
3024
setOutputs({
3125
json: JSON.stringify({
3226
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)