Skip to content

Commit

Permalink
Use sed instead of jq.
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo committed Nov 29, 2023
1 parent f1b2445 commit 328e7af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
AWS_EC2_SSH_KEY: ${{ secrets.AWS_EC2_SSH_KEY }}

steps:
- name: Install jq
run: sudo apt-get install -y jq
# - name: Install jq
# run: sudo apt-get install -y jq

- name: Set up AWS CLI
run: |
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Extract the instance IDs using jq (JSON processor)
run: |
set -x
IFS=$'\n' read -d '' -r -a INSTANCES <<< "$(echo "$INSTANCE_IDS" | jq -r '.[]')"
IFS=$'\n' read -d '' -r -a INSTANCES <<< "$(echo "$INSTANCE_IDS" | sed -n 's/[^"]*"\([^"]*\)".*/\1/p')"
set +x
- name: Iterate over the array
Expand Down

0 comments on commit 328e7af

Please sign in to comment.