Skip to content

Commit

Permalink
Set some default from env
Browse files Browse the repository at this point in the history
  • Loading branch information
Kareem Zidane committed Jul 15, 2021
1 parent 7ae792a commit 8811336
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ inputs:
env_name:
description: "The name of the EB environment"
required: false
default: "$INPUT_app-name"
version_label:
description: "The version label for the the application version to be deployed"
required: false
default: "$GITHUB_SHA"
runs:
using: "docker"
image: "Dockerfile"
4 changes: 4 additions & 0 deletions docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ AWS_ACCESS_KEY_ID="$INPUT_AWS_ACCESS_KEY_ID"
AWS_SECRET_ACCESS_KEY="$INPUT_AWS_SECRET_ACCESS_KEY"
AWS_DEFAULT_REGION="$INPUT_AWS_DEFAULT_REGION"

# Default inputs from env
INPUT_ENV_NAME="${INPUT_ENV_NAME:=$INPUT_APP_NAME}"
INPUT_VERSION_LABEL="${INPUT_VERSION_LABEL:=$GITHUB_SHA}"

ZIP_NAME="$INPUT_APP_NAME-$INPUT_VERSION_LABEL.zip"
echo "App bundle name: $ZIP_NAME"

Expand Down

0 comments on commit 8811336

Please sign in to comment.