Skip to content

Commit

Permalink
hotfix = chars in env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocascio committed Dec 30, 2019
1 parent 6f93606 commit 645c241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This action deploys ECS services using [fabfuel/ecs-deploy](https://github.com/f
## Example usage

```yml
uses: brunocascio/[email protected].0
uses: brunocascio/[email protected].1
with:
cluster: theClusterName
service: theServiceName
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TIMEOUT=${INPUT_TIMEOUT:-300}
if [ ! -z "$INPUT_ENVFILE" ];
then
[ ! -f $INPUT_ENVFILE ] && echo "$INPUT_ENVFILE not found" && exit 1
env_variables=$(cat "$INPUT_ENVFILE" | awk -F= -v CONTAINER="$INPUT_CONTAINER" '{print "-e " CONTAINER " " $1 " " "\"" $2 "\""}')
env_variables=$(grep -v '^#' "$INPUT_ENVFILE" | grep . | sed -E 's/=/ /1' | awk -v CONTAINER="$INPUT_CONTAINER" '{print "-e " CONTAINER " " $1 " " $2}')
# make string command to be evaluated (one line string)
command=$(printf "ecs deploy $INPUT_CLUSTER $INPUT_SERVICE --timeout $TIMEOUT --task $INPUT_TASK $env_variables --exclusive-env")
else
Expand Down

0 comments on commit 645c241

Please sign in to comment.