Browse Source

fix: replace heredoc with echo pipe to fix YAML syntax

The heredoc syntax (<<'SHELL_EOF') in the workflow was breaking
YAML parsing and preventing the workflow from running.

Changed from:
  weed shell <<'SHELL_EOF'
  fs.ls /test-spark/employees/
  exit
  SHELL_EOF

To:
  echo -e 'fs.ls /test-spark/employees/\nexit' | weed shell

This achieves the same result but is YAML-compatible.
pull/7526/head
chrislu 1 week ago
parent
commit
55b5f7f0aa
  1. 5
      .github/workflows/spark-integration-tests.yml

5
.github/workflows/spark-integration-tests.yml

@ -228,10 +228,7 @@ jobs:
echo ""
echo "Trying: weed shell to list files..."
docker compose exec -T seaweedfs-master weed shell <<'SHELL_EOF' || echo "weed shell failed"
fs.ls /test-spark/employees/
exit
SHELL_EOF
echo -e "fs.ls /test-spark/employees/\nexit" | docker compose exec -T seaweedfs-master weed shell || echo "weed shell failed"
fi
- name: Stop test services

Loading…
Cancel
Save