Skip to content

Commit

Permalink
fix: read specified global.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jolexxa committed Apr 8, 2023
1 parent 207af4f commit d99569e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function run(): Promise<void> {
`🚨 Cannot find global.json file to infer the Godot version from.`
)
}
const globalJsonFileContents = fs.readFileSync('global.json', 'utf8')
const globalJsonFileContents = fs.readFileSync(globalJsonPath, 'utf8')
core.info(`🖨 global.json contents: ${globalJsonFileContents}`)
const globalJson = JSON.parse(globalJsonFileContents) ?? {}
core.info(
Expand Down

0 comments on commit d99569e

Please sign in to comment.