Skip to content

Commit ccc3d1a

Browse files
authored
Merge pull request dagger#50 from crazy-max/log-format-env
use DAGGER_LOG_FORMAT env instead of --log-format flag
2 parents a05f033 + f752196 commit ccc3d1a

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

dist/index.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ async function run(): Promise<void> {
3434

3535
for (const cmd of inputs.cmds) {
3636
await core.group(cmd, async () => {
37-
await exec.exec(`${daggerBin} ${cmd} --log-format plain`);
37+
await exec.exec(`${daggerBin} ${cmd}`, undefined, {
38+
env: Object.assign({}, process.env, {
39+
DAGGER_LOG_FORMAT: 'plain'
40+
}) as {
41+
[key: string]: string;
42+
}
43+
});
3844
});
3945
}
4046
} catch (error) {

0 commit comments

Comments
 (0)