Skip to content

Commit

Permalink
typo fix + yarn all
Browse files Browse the repository at this point in the history
  • Loading branch information
rnsc committed Jul 13, 2021
1 parent 873b7ea commit f1b3270
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}'.`);
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function run(): Promise<void> {
// 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') {
Expand Down

0 comments on commit f1b3270

Please sign in to comment.