From b7cd11b1fa918a3671348414c5113ab891e1f052 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 20 Aug 2020 16:12:46 +0200 Subject: [PATCH] Unsilent --- dist/index.js | 7 +------ src/main.ts | 8 +------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6ea7f58..57fd99a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1090,12 +1090,7 @@ function run() { const username = core.getInput('username'); const password = core.getInput('password', { required: true }); if (yield ecr.isECR(registry)) { - yield exec.exec('aws', ['--version'], true).then(res => { - if (res.stderr != '' && !res.success) { - throw new Error(res.stderr); - } - core.info(`💡 Using ${res.stdout}`); - }); + yield exec.exec('aws', ['--version'], false); const ecrRegion = yield ecr.getRegion(registry); process.env.AWS_ACCESS_KEY_ID = username; process.env.AWS_SECRET_ACCESS_KEY = password; diff --git a/src/main.ts b/src/main.ts index 4994f8f..79d3a84 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,13 +19,7 @@ async function run(): Promise { const password: string = core.getInput('password', {required: true}); if (await ecr.isECR(registry)) { - await exec.exec('aws', ['--version'], true).then(res => { - if (res.stderr != '' && !res.success) { - throw new Error(res.stderr); - } - core.info(`💡 Using ${res.stdout}`); - }); - + await exec.exec('aws', ['--version'], false); const ecrRegion = await ecr.getRegion(registry); process.env.AWS_ACCESS_KEY_ID = username; process.env.AWS_SECRET_ACCESS_KEY = password;