fix:use resolve instead of join

This commit is contained in:
Federico Grandi
2020-07-08 16:10:51 +02:00
parent d82f4d33b7
commit ac2b74d9d0

View File

@@ -1,10 +1,10 @@
import { info, setFailed, getInput, warning } from '@actions/core'
import { join as path } from 'path'
import { execFile } from 'child_process'
import { resolve } from 'path'
try {
checkInputs()
const child = execFile(path(__dirname, 'entrypoint.sh'))
const child = execFile(resolve(__dirname, 'entrypoint.sh'))
child.stdout?.pipe(process.stdout)
child.stderr?.pipe(process.stderr)
} catch (err) {