Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ci: Fix jq command (#51510)

Finn Eversbb6a6e03052a
diff --git a/.github/workflows/extension_auto_bump.yml b/.github/workflows/extension_auto_bump.yml
index 215cdbe5eec..f5203800958 100644
--- a/.github/workflows/extension_auto_bump.yml
+++ b/.github/workflows/extension_auto_bump.yml
@@ -36,7 +36,7 @@ jobs:
for ext in $(echo "$EXTENSIONS_JSON" | jq -r '.[]'); do
if git show HEAD~1:"$ext/extension.toml" >/dev/null 2>&1 && \
[ -f "$ext/extension.toml" ]; then
- FILTERED=$(echo "$FILTERED" | jq --arg e "$ext" '. + [$e]')
+ FILTERED=$(echo "$FILTERED" | jq -c --arg e "$ext" '. + [$e]')
fi
done
echo "changed_extensions=$FILTERED" >> "$GITHUB_OUTPUT"
diff --git a/tooling/xtask/src/tasks/workflows/extension_auto_bump.rs b/tooling/xtask/src/tasks/workflows/extension_auto_bump.rs
index 3201fdb1f65..14c15f39ad7 100644
--- a/tooling/xtask/src/tasks/workflows/extension_auto_bump.rs
+++ b/tooling/xtask/src/tasks/workflows/extension_auto_bump.rs
@@ -46,7 +46,7 @@ fn detect_changed_extensions() -> NamedJob {
for ext in $(echo "$EXTENSIONS_JSON" | jq -r '.[]'); do
if git show HEAD~1:"$ext/extension.toml" >/dev/null 2>&1 && \
[ -f "$ext/extension.toml" ]; then
- FILTERED=$(echo "$FILTERED" | jq --arg e "$ext" '. + [$e]')
+ FILTERED=$(echo "$FILTERED" | jq -c --arg e "$ext" '. + [$e]')
fi
done
echo "changed_extensions=$FILTERED" >> "$GITHUB_OUTPUT"