From 328e7af1563a404f8fd577313f7a752202fc4ec8 Mon Sep 17 00:00:00 2001 From: everaldorodrigo Date: Wed, 29 Nov 2023 15:07:43 -0800 Subject: [PATCH] Use sed instead of jq. --- .github/workflows/deploy_prod.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml index 20e79fb7..3d3aabf3 100644 --- a/.github/workflows/deploy_prod.yml +++ b/.github/workflows/deploy_prod.yml @@ -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: | @@ -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