File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
.github/actions/validate-template Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ inputs:
1313outputs :
1414 status :
1515 description : Validate status
16- value : ${{ fromJSON( steps.validate-template.outputs.result) .status }}
16+ value : ${{ steps.validate-template.outputs.status }}
1717 detail :
1818 description : Validate detail
19- value : ${{ fromJSON( steps.validate-template.outputs.result) .detail }}
19+ value : ${{ steps.validate-template.outputs.detail }}
2020
2121runs :
2222 using : composite
3535 shell : bash
3636 run : |
3737 result=$(deno run --allow-read "${ACTION_PATH}/src/main.ts" "${INPUT_PATH}" "${INPUT_DIRECTORY}")
38- # Escape special characters and ensure single-line JSON output
39- result=$(echo "$result" | jq -c '.')
40- echo "result=${result}" >> "$GITHUB_OUTPUT"
38+ # Parse JSON and extract status and detail separately
39+ status=$(echo "$result" | jq -r '.status')
40+ detail=$(echo "$result" | jq -r '.detail')
41+ echo "status=${status}" >> "$GITHUB_OUTPUT"
42+ echo "detail=${detail}" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments