Skip to content

Commit

Permalink
BC-5468 Check for empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
UzaeirKhan committed Nov 22, 2023
1 parent 311e392 commit dea58e7
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,22 @@ jobs:
default_instance=${{ github.event.inputs.instance2 }}
nbc_instance=${{ github.event.inputs.instance3 }}
elif [[ $workflow == *"automatic"* || $workflow == *"scheduled"* ]]; then
brb_instance=$(op document get cypress-json --vault cy-dev-brb | jq -r '.BRB')
default_instance=$(op document get cypress-json --vault cy-dev-dbc | jq -r '.DEFAULT')
nbc_instance=$(op document get cypress-json --vault cy-dev-nbc | jq -r '.NBC')
brb_instance=""
default_instance=""
nbc_instance=""
# brb_instance=$(op document get cypress-json --vault cy-dev-brb | jq -r '.BRB')
# default_instance=$(op document get cypress-json --vault cy-dev-dbc | jq -r '.DEFAULT')
# nbc_instance=$(op document get cypress-json --vault cy-dev-nbc | jq -r '.NBC')
else
brb_instance=${{ inputs.cypress_brb }}
default_instance=${{ inputs.cypress_default }}
nbc_instance=${{ inputs.cypress_nbc }}
fi
# Ensure that the variables don't contain extra quotes
brb_instance=$(echo "${brb_instance}" | tr -d '"')
default_instance=$(echo "${default_instance}" | tr -d '"')
nbc_instance=$(echo "${nbc_instance}" | tr -d '"')
# brb_instance=$(echo "${brb_instance}" | tr -d '"')
# default_instance=$(echo "${default_instance}" | tr -d '"')
# nbc_instance=$(echo "${nbc_instance}" | tr -d '"')
chmod +x ${{ github.workspace }}/e2e-system-tests/scripts/aggregate-json-files.sh
${{ github.workspace }}/e2e-system-tests/scripts/aggregate-json-files.sh \
Expand Down

0 comments on commit dea58e7

Please sign in to comment.