Skip to content

Commit

Permalink
fix: Auto set cwd as OF_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
nandenjin committed Mar 27, 2024
1 parent 0e29148 commit c248e4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ import { basename, resolve } from 'path'
import { isWindows } from '../util/platform'

export default async function main() {
const OF_ROOT = resolve(
process.cwd(),
getInput('of_root', { required: true })
)
const OF_ROOT = resolve(process.cwd(), getInput('of_root'))
const PROJECT_ROOT = resolve(
OF_ROOT,
getInput('project_root', { required: true })
Expand Down
2 changes: 1 addition & 1 deletion src/commands/projectgenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { join, resolve } from 'path'
import { exec } from '@actions/exec'

export default async function main() {
const OF_ROOT = resolve(process.cwd(), getInput('ofRoot', { required: true }))
const OF_ROOT = resolve(process.cwd(), getInput('of_root'))
const PROJECT_GENERATOR_DIR = resolve(
OF_ROOT,
getInput('project_generator_dir') || 'projectGenerator'
Expand Down

0 comments on commit c248e4b

Please sign in to comment.