Skip to content

Commit

Permalink
Fail if 'FunctionError' exists in the JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Nov 6, 2024
1 parent 5e018d9 commit 5d66f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
# the command will exit 0 even if the invocation failed. The JSON key `FunctionError` will contain something
# if there's an error.
command: |
aws lambda invoke --function-name DCWebsiteManagementFunction --payload '{ "command": "migrate", "args": ["--no-input"] }' --cli-binary-format raw-in-base64-out - | grep 'FunctionError": ""'
aws lambda invoke --function-name DCWebsiteManagementFunction --payload '{ "command": "migrate", "args": ["--no-input"] }' --cli-binary-format raw-in-base64-out - | grep -v 'FunctionError'
- run:
name: "Invalidate CloudFront cache"
command: |
Expand Down

0 comments on commit 5d66f26

Please sign in to comment.