Skip to content

Commit

Permalink
fixup! Fix #49: Hide most output behind output groups
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Mar 5, 2023
1 parent ddcec83 commit e3b8edf
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 29 deletions.
21 changes: 9 additions & 12 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.

29 changes: 13 additions & 16 deletions src/action/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import ResourceDisk from '../resource_disk'
import * as vmModule from '../vm'
import * as input from './input'
import * as shell from './shell'
import * as utility from '../utility'

export enum ImplementationKind {
qemu,
Expand Down Expand Up @@ -264,21 +263,19 @@ export class Action {
}

private async runCommand(vm: vmModule.Vm): Promise<void> {
utility.group('Running command', async () => {
core.info(this.input.run)
const sh =
this.input.shell === shell.Shell.default
? '$SHELL'
: shell.toString(this.input.shell)
await vm.execute2(
[
'sh',
'-c',
`'cd "${process.env['GITHUB_WORKSPACE']}" && exec "${sh}" -e'`
],
Buffer.from(this.input.run)
)
})
core.info(this.input.run)
const sh =
this.input.shell === shell.Shell.default
? '$SHELL'
: shell.toString(this.input.shell)
await vm.execute2(
[
'sh',
'-c',
`'cd "${process.env['GITHUB_WORKSPACE']}" && exec "${sh}" -e'`
],
Buffer.from(this.input.run)
)
}

private getImplementation(kind: ImplementationKind): Implementation {
Expand Down

0 comments on commit e3b8edf

Please sign in to comment.