Skip to content

Commit

Permalink
Another apporach.
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo committed Nov 29, 2023
1 parent 8faa612 commit b565be6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ jobs:
- name: Extract the instance IDs using jq (JSON processor)
run: |
set -x
# IFS=$'\n' read -d '' -r -a INSTANCES <<< "$(echo "$INSTANCE_IDS" | sed -n 's/[^"]*"\([^"]*\)".*/\1/p')"
# readarray -t INSTANCES <<< "$(echo "$INSTANCE_IDS" | jq -r '.[]')"
readarray -t INSTANCES <<< "$INSTANCE_IDS"
set +x
INSTANCES=( $INSTANCE_IDS )
# set -x
# # IFS=$'\n' read -d '' -r -a INSTANCES <<< "$(echo "$INSTANCE_IDS" | sed -n 's/[^"]*"\([^"]*\)".*/\1/p')"
# # readarray -t INSTANCES <<< "$(echo "$INSTANCE_IDS" | jq -r '.[]')"
# readarray -t INSTANCES <<< "$INSTANCE_IDS"
# set +x
echo $INSTANCES
Expand Down

0 comments on commit b565be6

Please sign in to comment.