Skip to content

Commit

Permalink
fix: target should run in diff process
Browse files Browse the repository at this point in the history
  • Loading branch information
bkioshn committed Dec 28, 2023
1 parent 0a618a0 commit 5bef622
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions actions/run/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2922,9 +2922,9 @@ async function run() {
// Running each target command in different process.
for (const t of targetsArgs) {
core.info(`Target: ${t}`);
args.push(t);
core.info(`Running command: ${command} ${args.join(' ')}`);
const output = await spawnCommand(command, args);
const argsSpawn = [...args, t];
core.info(`Running command: ${command} ${argsSpawn.join(' ')}`);
const output = await spawnCommand(command, argsSpawn);
const imageOutput = parseImage(output);
if (imageOutput) {
core.info(`Found image: ${imageOutput}`);
Expand Down
6 changes: 3 additions & 3 deletions actions/run/src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export async function run(): Promise<void> {
// Running each target command in different process.
for (const t of targetsArgs) {
core.info(`Target: ${t}`)
args.push(t)
core.info(`Running command: ${command} ${args.join(' ')}`)
const output = await spawnCommand(command, args)
const argsSpawn = [...args, t]
core.info(`Running command: ${command} ${argsSpawn.join(' ')}`)
const output = await spawnCommand(command, argsSpawn)
const imageOutput = parseImage(output)
if (imageOutput) {
core.info(`Found image: ${imageOutput}`)
Expand Down

0 comments on commit 5bef622

Please sign in to comment.