We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efac77c commit eec5f4fCopy full SHA for eec5f4f
.github/workflows/consolidate-snippets.yml
@@ -20,7 +20,7 @@ jobs:
20
run: |
21
mkdir -p public/consolidated
22
echo "[" > public/consolidated/all_snippets.json
23
- find public/data -name "*.json" -exec sh -c 'jq -c ".[]" {} | sed "s/^/{\"language\": \"$(basename {} .json)\", /" | sed "s/}/},/" >> public/consolidated/all_snippets.json' \;
+ find public/data -name "*.json" ! -name "_index.json" -exec sh -c 'jq -c ".[]" {} | sed "s/^/{\"language\": \"$(basename {} .json)\", /" | sed "s/}/},/" >> public/consolidated/all_snippets.json' \;
24
sed -i '$ s/,$//' public/consolidated/all_snippets.json
25
echo "]" >> public/consolidated/all_snippets.json
26
0 commit comments