Skip to content

Commit

Permalink
chore: testing json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
tlebon committed Dec 20, 2024
1 parent bb53c0c commit 3de0672
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 3de0672

Please sign in to comment.