From 3de0672e6181b1b01855c266601faa7ca3896059 Mon Sep 17 00:00:00 2001 From: Timothy Le Bon Date: Fri, 20 Dec 2024 11:03:22 +0100 Subject: [PATCH] chore: testing json parsing --- .github/workflows/precommit.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index 5f49e1c968e..45957e6f396 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -64,14 +64,11 @@ jobs: - name: Check total PR additions id: check_additions run: | - # Store response data in variable - response="${{ steps.pr_details.outputs.data }}" - # Parse additions from response - total_additions=$(echo "$response" | jq -r '.additions') + # Parse additions directly from the response + total_additions=$(jq -r '.data.additions' <<< '${{ toJSON(steps.pr_details.outputs) }}') echo "Found total additions: $total_additions" # Output for subsequent steps echo "total_additions=$total_additions" >> $GITHUB_OUTPUT - print "total_additions=$total_additions" deploy_to_aws: name: 'Deploy to live environments'