Skip to content

Commit

Permalink
fix: added missing pr number input (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
piximos authored Mar 22, 2024
1 parent eec2e7b commit d2f1486
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ inputs:
description: AWS ECR Repo Alpha image
required: false
default: 'true'
pr-number:
description: The current pull request number
required: true

runs:
using: 'docker'
Expand All @@ -43,3 +46,4 @@ runs:
ECR_REPO_NAME: ${{ inputs.ecr-repo-name }}
ECR_REPO_TAG: ${{ inputs.ecr-repo-tag }}
USE_ALPHA_REGISTRY: ${{ inputs.use-alpha }}
PR_NUMBER: ${{ inputs.pr-number }}
3 changes: 2 additions & 1 deletion scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

REPO_ORG=${GITHUB_REPOSITORY_OWNER}
REPO_NAME=$(echo "${GITHUB_REPOSITORY}" |cut -d "/" -f2)
PR_NUMBER=${GITHUB_SHA}

check_env_var "AWS_ACCOUNT_ID"
check_env_var "ECR_REPO_NAME"
check_env_var "ECR_REPO_TAG"
check_env_var "PR_NUMBER"
check_env_var "USE_ALPHA_REGISTRY"

if [[ "$(check_bool "${USE_ALPHA_REGISTRY}")" ]]; then
Expand Down

0 comments on commit d2f1486

Please sign in to comment.