Update deploy_site.sh script with exit codes

It is noted during integration testing that we should
have an exit code for the script. This is needed in order
for us to know the final state of the workflow and to decide
whether it was successful or not.

Change-Id: I1f0b2a357d89fc3e898db68b930ada02b52ab398
This commit is contained in:
Anthony Lin 2017-10-31 22:40:06 +00:00
parent b8d4a8a97b
commit 79f6584fa9
1 changed files with 8 additions and 0 deletions

View File

@ -108,3 +108,11 @@ done
# Delete the temporary files
rm /tmp/deploy_site_response.json
rm /tmp/get_action_status.json
# Return exit code so that we can use it to determine the final
# state of the workflow
if [[ $action_lifecycle == "Complete" ]]; then
exit 0
else
exit 1
fi