File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -559,23 +559,21 @@ jobs:
559559
560560 - name : Register schemas
561561 id : register
562- shell : bash
562+ shell : pwsh
563563 run : |
564- echo "Registering schemas..."
565- sleep 40 # Wait for the API to be ready
564+ Write-Host "Registering schemas..."
565+ Start-Sleep -Seconds 40 # Wait for the API to be ready
566566
567- cd src/ContentProcessorAPI/samples/schemas
568- chmod +x ./register_schema.sh
569- ./register_schema.sh ${{ env.CONTAINER_API_APPURL }}/schemavault/ schema_info_sh.json
567+ Set-Location src/ContentProcessorAPI/samples/schemas
568+ & .\register_schema.ps1 "${{ env.CONTAINER_API_APPURL }}/schemavault/" "schema_info_sh.json"
570569
571570 - name : Upload sample invoice and claim data
572- shell : bash
571+ shell : pwsh
573572 run : |
574- echo "Uploading sample data..."
575- cd src/ContentProcessorAPI/samples
576- chmod +x ./upload_files.sh
577- ./upload_files.sh ${{ env.CONTAINER_API_APPURL }}/contentprocessor/submit ./invoices '${{ steps.register.outputs.invoice_schema_id }}'
578- ./upload_files.sh ${{ env.CONTAINER_API_APPURL }}/contentprocessor/submit ./propertyclaims '${{ steps.register.outputs.propertylossdamageclaimform_schema_id }}'
573+ Write-Host "Uploading sample data..."
574+ Set-Location src/ContentProcessorAPI/samples
575+ & .\upload_files.ps1 "${{ env.CONTAINER_API_APPURL }}/contentprocessor/submit" ".\invoices" "${{ steps.register.outputs.invoice_schema_id }}"
576+ & .\upload_files.ps1 "${{ env.CONTAINER_API_APPURL }}/contentprocessor/submit" ".\propertyclaims" "${{ steps.register.outputs.propertylossdamageclaimform_schema_id }}"
579577
580578
581579 - name : Disable Auth in Web App
You can’t perform that action at this time.
0 commit comments