Skip to content

Commit 52b7f7a

Browse files
HackingGateclaude
andcommitted
Fix manual dispatch multiline JSON output format
Use jq -c to compact TYPST_VERSIONS JSON array to single line before writing to GITHUB_OUTPUT, fixing "Invalid format" error. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 062b8d6 commit 52b7f7a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test_typst_out_action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ jobs:
8383
if [ -n "${{ github.event.inputs.typst_version }}" ]; then
8484
echo 'typst-version-matrix=["${{ github.event.inputs.typst_version }}"]' >> $GITHUB_OUTPUT
8585
else
86-
# Use all versions from TYPST_VERSIONS
87-
echo "typst-version-matrix=$ALL_VERSIONS" >> $GITHUB_OUTPUT
86+
# Use all versions from TYPST_VERSIONS (compact JSON to single line)
87+
echo "typst-version-matrix=$(echo "$ALL_VERSIONS" | jq -c '.')" >> $GITHUB_OUTPUT
8888
fi
8989
9090
exit 0

0 commit comments

Comments
 (0)