Skip to content

Commit

Permalink
try join instead of resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
EndBug committed Jul 8, 2020
1 parent 6411f38 commit bf3210f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { info, setFailed, getInput, warning } from '@actions/core'
import { execFile } from 'child_process'
import { resolve } from 'path'
import { join } from 'path'

try {
checkInputs()
const child = execFile(resolve('entrypoint.sh'), [], { shell: true })
const child = execFile(join(__dirname, 'entrypoint.sh'), [], { shell: true })
child.stdout?.pipe(process.stdout)
child.stderr?.pipe(process.stderr)
} catch (err) {
Expand Down

0 comments on commit bf3210f

Please sign in to comment.