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:
CrazyMax 2022-04-14 12:57:43 +02:00
parent a05f03361d
commit f752196117
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
2 changed files with 12 additions and 2 deletions

6
dist/index.js generated vendored
View file

@ -234,7 +234,11 @@ function run() {
} }
for (const cmd of inputs.cmds) { for (const cmd of inputs.cmds) {
yield core.group(cmd, () => __awaiter(this, void 0, void 0, function* () { 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'
})
});
})); }));
} }
} }

View file

@ -34,7 +34,13 @@ async function run(): Promise<void> {
for (const cmd of inputs.cmds) { for (const cmd of inputs.cmds) {
await core.group(cmd, async () => { 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) { } catch (error) {