Testing with fromJSON.

This commit is contained in:
2024-12-17 08:49:10 -05:00
parent 3e851aaa4e
commit 3c46bdcde8
@@ -30,11 +30,18 @@ jobs:
accept: 200,201,204,404
log-response: true
- name: Format of gocurl response.
id: format-response
run: |
RESPONSE='${{ toJSON(steps.check-pr.outputs.response) }}'
echo "$RESPONSE" | jq > valid_response.json
echo "response_json=$(cat valid_response.json)" >> $GITHUB_OUTPUT
- name: Parse PR Response
id: parse-pr
uses: yakubique/json-utils@v1.8
with:
input: '${{ fromJSON(steps.check-pr.outputs.response) }}'
input: '${{ fromJSON(steps.format-response.outputs.response_json) }}'
action: "get"
key: "status"