Skip to content

Commit

Permalink
fix: escape special chars
Browse files Browse the repository at this point in the history
  • Loading branch information
botanical committed Dec 19, 2024
1 parent bd3fcd3 commit d1d6cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ jobs:
pip install -r ./scripts/requirements.txt
for file in ${PUBLISHED_COLLECTION_FILES}; do
collection_id=$(python3 ./scripts/generate-mdx.py "$file")
collection_ids=$(echo $collection_ids | jq --arg id "$collection_id" '. + [$id]')
collection_ids=$(echo $collection_ids | jq --arg id "$(echo $collection_id | sed 's/"/\\"/g')" '. + [$id]')
done
echo "collection_ids=${collection_ids}" >> $GITHUB_ENV
Expand Down

0 comments on commit d1d6cd2

Please sign in to comment.