Skip to content

Commit

Permalink
read and set path
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-kasibhatla committed Nov 19, 2022
1 parent 595065d commit c0b576d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 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.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function run(): Promise<void> {
const downloadUrls = core.getInput('cocos_download_url')
const cocosVersion = core.getInput('cocos_version')
const cocosType = core.getInput('cocos_type')
// const projectPath = core.getInput('project_path')
const projectPath = await exec('echo $(pwd)')
const configPath = core.getInput('build_config')
try {
await exec('npm', ['install', '--force'])
Expand All @@ -50,7 +50,7 @@ async function run(): Promise<void> {
await exec(`open ./CocosCreator.app`)
console.log('open CocosCreator.app success')
await exec(
`./CocosCreator.app/Contents/MacOS/CocosCreator --path "$(pwd)" --build "configPath=${configPath};"`
`./CocosCreator.app/Contents/MacOS/CocosCreator --path "${projectPath}" --build "configPath=${configPath};"`
)
const artifactClient = artifact.create()
const artifactName = 'cocos-build-package'
Expand Down

0 comments on commit c0b576d

Please sign in to comment.