Added proper support for multiple arguments

This commit is contained in:
Borales
2022-12-05 21:31:43 +01:00
parent d8b5ea8c26
commit 97ba8bebfe
5 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import {exec} from '@actions/exec'
export const run = async (cmd: string, {cwd}: {cwd: string}) => {
await exec('yarn', [cmd], {cwd})
await exec('yarn', cmd.split(' '), {cwd})
}