Skip to content

Commit 8811336

Browse files
author
Kareem Zidane
committed
Set some default from env
1 parent 7ae792a commit 8811336

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ inputs:
2222
env_name:
2323
description: "The name of the EB environment"
2424
required: false
25-
default: "$INPUT_app-name"
2625
version_label:
2726
description: "The version label for the the application version to be deployed"
2827
required: false
29-
default: "$GITHUB_SHA"
3028
runs:
3129
using: "docker"
3230
image: "Dockerfile"

docker-entrypoint

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ AWS_ACCESS_KEY_ID="$INPUT_AWS_ACCESS_KEY_ID"
77
AWS_SECRET_ACCESS_KEY="$INPUT_AWS_SECRET_ACCESS_KEY"
88
AWS_DEFAULT_REGION="$INPUT_AWS_DEFAULT_REGION"
99

10+
# Default inputs from env
11+
INPUT_ENV_NAME="${INPUT_ENV_NAME:=$INPUT_APP_NAME}"
12+
INPUT_VERSION_LABEL="${INPUT_VERSION_LABEL:=$GITHUB_SHA}"
13+
1014
ZIP_NAME="$INPUT_APP_NAME-$INPUT_VERSION_LABEL.zip"
1115
echo "App bundle name: $ZIP_NAME"
1216

0 commit comments

Comments
 (0)