Skip to content

Commit 3c0f243

Browse files
author
kaixuanxu
committed
fix: json
1 parent 449d85d commit 3c0f243

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/actions/validate-template/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ runs:
3232
INPUT_PATH: ${{ inputs.path }}
3333
INPUT_DIRECTORY: ${{ inputs.directory }}
3434
ACTION_PATH: ${{ github.action_path }}
35+
shell: bash
3536
run: |
3637
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 '.')
3740
echo "result=${result}" >> "$GITHUB_OUTPUT"
38-
shell: bash

0 commit comments

Comments
 (0)