From 1d3ab3bafa8146bf9efceec509b667dbd226671d Mon Sep 17 00:00:00 2001 From: Aleksei Lebedev <1329824+LastDragon-ru@users.noreply.github.com> Date: Fri, 8 Sep 2023 09:11:20 +0400 Subject: [PATCH] ci(github): `dependencies-package` will use correct version of packages (from local repo). --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68be8b591..10a7483a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,16 @@ jobs: uses: actions/checkout@v3 - name: Install PHP uses: ./.github/actions/php + - name: Composer repositories + shell: bash + working-directory: ${{ needs.settings.outputs.packages-directory }}/${{ matrix.package }} + run: | + PACKAGES=$(echo '${{ needs.settings.outputs.packages-names }}' | jq 'map(select(. != "${{ matrix.package }}"))' | jq -c -r '.[]') + + while read -r PKG + do + composer config "repositories.${PKG}" path "../${PKG}" + done <<< "${PACKAGES}" - name: Install package dependencies uses: ramsey/composer-install@v2 with: