From 58c3e15a6c840cf8cf162049f99a8c64b8083bf4 Mon Sep 17 00:00:00 2001 From: rnsc Date: Tue, 13 Jul 2021 19:12:20 +0200 Subject: [PATCH] typo fix + yarn all --- dist/index.js | 6 +++--- src/main.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 68acd480..32a94da9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4527,7 +4527,7 @@ function run() { // Create GitHub client with the API token. const client = new github_1.GitHub(core.getInput('token', { required: true })); const format = core.getInput('format', { required: true }); - const globFilter = core.getMultilineInput('glob-filter', { required: true }) || '*'; + const filter = core.getMultilineInput('filter', { required: true }) || '*'; // Ensure that the format parameter is set properly. if (format !== 'space-delimited' && format !== 'csv' && format !== 'json') { core.setFailed(`Format must be one of 'string-delimited', 'csv', or 'json', got '${format}'.`); @@ -4579,11 +4579,11 @@ function run() { } const files = response.data.files.filter(file => { let match = false; - for (const item of globFilter) { + for (const item of filter) { const pattern = item; core.debug(`Test ${file.filename} against ${pattern}`); core.debug(`current match value: ${match}`); - if (pattern.includes('!')) { + if (pattern.startsWith('!')) { match = match && minimatch_1.default(file.filename, pattern, { matchBase: true, dot: true }); } else { diff --git a/src/main.ts b/src/main.ts index 04fac529..51a4a97e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -10,7 +10,7 @@ async function run(): Promise { // Create GitHub client with the API token. const client = new GitHub(core.getInput('token', {required: true})) const format = core.getInput('format', {required: true}) as Format - const filter = core.getMultilineInput('gfilter', {required: true}) || '*' + const filter = core.getMultilineInput('filter', {required: true}) || '*' // Ensure that the format parameter is set properly. if (format !== 'space-delimited' && format !== 'csv' && format !== 'json') {