Skip to content

Commit

Permalink
inputs.aws-ecr-repository does not need to be assigned to an environm…
Browse files Browse the repository at this point in the history
…ent variable
  • Loading branch information
lpm0073 committed Jun 7, 2022
1 parent 244eb1d commit b977566
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,11 @@ runs:
steps:
- uses: actions/checkout@v1

- name: Setup environment
run: |
echo "AWS_ECR_REPOSITORY=${{ inputs.aws-ecr-repository }}" >> $GITHUB_ENV
shell: bash

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Create the repository
run: |
aws ecr describe-repositories --repository-names ${AWS_ECR_REPOSITORY} || aws ecr create-repository --repository-name ${AWS_ECR_REPOSITORY}
shell: bash
run: |
aws ecr describe-repositories --repository-names ${{ inputs.aws-ecr-repository }} || aws ecr create-repository --repository-name ${{ inputs.aws-ecr-repository }}

0 comments on commit b977566

Please sign in to comment.