fix(ci): use single-quoted PHP to avoid shell escaping issues
Some checks failed
CI / PHP 8.3 (push) Failing after 45s
CI / PHP 8.4 (push) Failing after 45s

Switch php -r argument to single quotes so PHP dollar signs
are not interpreted by bash. Pipe output to while-read loop.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude 2026-02-23 05:24:21 +00:00
parent 3752fe7cb0
commit da2cbd87a2
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -29,13 +29,15 @@ jobs:
- name: Checkout path dependencies
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
for path in $(php -r "
\$d = json_decode(file_get_contents('composer.json'), true);
foreach (\$d['repositories'] ?? [] as \$r) {
if ((\$r['type'] ?? '') === 'path') echo \$r['url'] . \"\\n\";
php -r '
$d = json_decode(file_get_contents("composer.json"), true);
foreach ($d["repositories"] ?? [] as $r) {
if (($r["type"] ?? "") === "path") echo $r["url"] . "\n";
}
"); do
' | while IFS= read -r path; do
[ -z "$path" ] && continue
dir_name=$(basename "$path")
if [ ! -d "$path" ]; then
echo "Cloning $dir_name into $path"