Skip to content

Commit

Permalink
Unsilent
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyMax committed Aug 20, 2020
1 parent 16b2f90 commit b7cd11b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
7 changes: 1 addition & 6 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@ async function run(): Promise<void> {
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;
Expand Down

0 comments on commit b7cd11b

Please sign in to comment.