From f1b244556783cc0dc24c776c89a0764380c79bd3 Mon Sep 17 00:00:00 2001 From: everaldorodrigo Date: Wed, 29 Nov 2023 14:58:17 -0800 Subject: [PATCH] Install jq. --- .github/workflows/deploy_prod.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml index b7482afe..20e79fb7 100644 --- a/.github/workflows/deploy_prod.yml +++ b/.github/workflows/deploy_prod.yml @@ -20,6 +20,9 @@ jobs: AWS_EC2_SSH_KEY: ${{ secrets.AWS_EC2_SSH_KEY }} steps: + - name: Install jq + run: sudo apt-get install -y jq + - name: Set up AWS CLI run: | mkdir -p ~/.aws @@ -51,7 +54,9 @@ 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 '.[]')" + set +x - name: Iterate over the array run: |