Skip to content

Commit

Permalink
fix: update directory default
Browse files Browse the repository at this point in the history
  • Loading branch information
stuft2 committed Oct 31, 2022
1 parent 50de474 commit add6653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
directory:
required: false
description: 'Specifies the directory to look for a package.json. Defaults to the current working directory.'
default: 'false'
default: ''
version:
required: false
description: 'Toggles the version module to output version information.'
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
function run (): void {
try {
const dir = core.getInput('directory', { required: false })
const file = dir != null
const file = dir !== ''
? path.join(process.cwd(), dir, 'package.json')
: path.join(process.cwd(), 'package.json')
const content = readFileSync(file, { encoding: 'utf-8' })
Expand Down

0 comments on commit add6653

Please sign in to comment.