Testing with fromJSON.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user