Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Apr 29, 2023
1 parent 9bc31cb commit 5cb1680
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions __tests__/functions/exclude.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ beforeEach(() => {
jest.clearAllMocks()
process.env.INPUT_EXCLUDE_FILE = '__tests__/fixtures/exclude/exclude.txt'
process.env.INPUT_GIT_IGNORE_PATH = '.gitignore'
process.env.INPUT_USE_GIT_IGNORE = 'true'
process.env.INPUT_USE_GITIGNORE = 'true'
exclude = new Exclude()
})

Expand Down Expand Up @@ -73,7 +73,7 @@ test('successfully checks a file and finds that it is not excluded', () => {

test('does not exclude any files when no exclude file is used', () => {
process.env.INPUT_EXCLUDE_FILE = ''
process.env.INPUT_USE_GIT_IGNORE = 'false'
process.env.INPUT_USE_GITIGNORE = 'false'
const exclude = new Exclude()
expect(exclude.isExcluded('exclude-me.json')).toBe(false)
expect(debugMock).not.toHaveBeenCalled()
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/functions/exclude.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {readFileSync} from 'fs'
export class Exclude {
constructor() {
this.path = core.getInput('exclude_file').trim()
this.gitTrackedOnly = core.getInput('use_git_ignore').trim() === 'true'
this.gitTrackedOnly = core.getInput('use_gitignore').trim() === 'true'

// initialize the exclude array
this.exclude = []
Expand Down

0 comments on commit 5cb1680

Please sign in to comment.