Skip to content

Commit

Permalink
AWS region is required now
Browse files Browse the repository at this point in the history
  • Loading branch information
abronin committed Nov 22, 2020
1 parent 9ad950e commit efdcbd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const core = require('@actions/core');
const aws = require('aws-sdk')

async function run() {
const region = core.getInput('aws-region', { required: false })
const ecr = region ? new aws.ECR({ region }) : new aws.ECR()
const region = core.getInput('aws-region', { required: true })
const ecr = new aws.ECR({ region })

const registryId = core.getInput('aws-account-id', { required: false })
const repositoryName = core.getInput('repository', { required: true })
Expand Down

0 comments on commit efdcbd4

Please sign in to comment.