mirror of
https://github.com/dagger/dagger-for-github.git
synced 2026-01-03 05:29:52 +11:00
use DAGGER_LOG_FORMAT env instead of --log-format flag
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
a05f03361d
commit
f752196117
2 changed files with 12 additions and 2 deletions
6
dist/index.js
generated
vendored
6
dist/index.js
generated
vendored
|
|
@ -234,7 +234,11 @@ function run() {
|
|||
}
|
||||
for (const cmd of inputs.cmds) {
|
||||
yield core.group(cmd, () => __awaiter(this, void 0, void 0, function* () {
|
||||
yield exec.exec(`${daggerBin} ${cmd} --log-format plain`);
|
||||
yield exec.exec(`${daggerBin} ${cmd}`, undefined, {
|
||||
env: Object.assign({}, process.env, {
|
||||
DAGGER_LOG_FORMAT: 'plain'
|
||||
})
|
||||
});
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,13 @@ async function run(): Promise<void> {
|
|||
|
||||
for (const cmd of inputs.cmds) {
|
||||
await core.group(cmd, async () => {
|
||||
await exec.exec(`${daggerBin} ${cmd} --log-format plain`);
|
||||
await exec.exec(`${daggerBin} ${cmd}`, undefined, {
|
||||
env: Object.assign({}, process.env, {
|
||||
DAGGER_LOG_FORMAT: 'plain'
|
||||
}) as {
|
||||
[key: string]: string;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue