Skip to content

Commit

Permalink
add check to see if all files are received on submit workflow
Browse files Browse the repository at this point in the history
Co-authored-by: basiliskus <[email protected]>
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: Sylvie <[email protected]>
  • Loading branch information
4 people committed Jan 10, 2025
1 parent 3db4f37 commit 6b6ba9c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/automated-staging-test-submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,18 @@ jobs:
for file in $(pwd)/examples/Test/Automated/**/*.hl7; do
echo "Sending $file"
curl \
response=${curl \
--header "Content-Type: application/hl7-v2" \
--header "Client: $client_id.$client_sender" \
--header "Authorization: Bearer $token" \
--data-binary "@$file" \
--silent \
"$host/api/waters"
"$host/api/waters" | jq -r ".overallStatus")
if [ response != "Received" ] then;
echo "File did not send"
exit 0
fi
done
- name: Clean up private key
Expand Down

0 comments on commit 6b6ba9c

Please sign in to comment.