File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,11 @@ deploy_lambda_function()
102102 aws s3 cp " $archive " " $s3_url "
103103 if aws lambda get-function --function-name " ${INPUT_NAME} " > /dev/null 2>&1
104104 then
105+ log " Updating lambda function code: ${INPUT_NAME} "
105106 aws lambda update-function-code \
106107 --architectures " $INPUT_ARCHITECTURES " \
107- --function-name " $INPUT_NAME " \
108- --zip-file " fileb://$archive "
108+ --function-name " $INPUT_NAME " \
109+ --zip-file " fileb://$archive "
109110 opts=
110111 if [ -n " $INPUT_LAYERS " ]; then
111112 layers=$( list_layer_version_arns " $INPUT_LAYERS " )
@@ -122,6 +123,8 @@ deploy_lambda_function()
122123 sleep 1
123124 done
124125 aws lambda publish-function " $INPUT_NAME "
126+ else
127+ log " No lambda function found: $INPUT_NAME "
125128 fi
126129 rm -f -- " $archive "
127130 trap - EXIT
You can’t perform that action at this time.
0 commit comments