ci: clone all 4 sister packages and remove broken VCS repo
This commit is contained in:
parent
cd8a7b9d64
commit
2c0c5f2e32
1 changed files with 11 additions and 5 deletions
|
|
@ -30,15 +30,21 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
echo "Cloning php-framework into ../php-framework"
|
||||
git clone --depth 1 \
|
||||
"https://x-access-token:${GITHUB_TOKEN}@forge.lthn.ai/core/php-framework.git" \
|
||||
../php-framework
|
||||
ls -la ../php-framework/composer.json
|
||||
for pkg in php-framework php-admin php-api php-mcp; do
|
||||
echo "Cloning $pkg into ../$pkg"
|
||||
git clone --depth 1 \
|
||||
"https://x-access-token:${GITHUB_TOKEN}@forge.lthn.ai/core/${pkg}.git" \
|
||||
../$pkg
|
||||
done
|
||||
ls -la ../php-framework/composer.json ../php-admin/composer.json ../php-api/composer.json ../php-mcp/composer.json
|
||||
|
||||
- name: Configure path repositories
|
||||
run: |
|
||||
composer config repositories.core path ../php-framework --no-interaction
|
||||
composer config repositories.admin path ../php-admin --no-interaction
|
||||
composer config repositories.api path ../php-api --no-interaction
|
||||
composer config repositories.mcp path ../php-mcp --no-interaction
|
||||
composer config --unset repositories.0 --no-interaction 2>/dev/null || true
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-interaction --no-progress
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue