From 841670a97fccd29d52b760bf0989ac5bb224ba3d Mon Sep 17 00:00:00 2001 From: Damien Retzinger Date: Sat, 13 Aug 2022 12:38:55 -0400 Subject: [PATCH] fix(integration): only run monolog fixup on v2.4.4 (#37) --- .github/workflows/integration.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 8094d39..af25030 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -97,6 +97,16 @@ jobs: COMPOSER_AUTH: ${{ secrets.composer_auth }} name: Create Magento ${{ matrix.magento }} Project + - run: | + echo "::set-output name=version::$(cat composer.json | jq '.require + | with_entries( select(.key == "magento/product-community-edition" or .key == "magento/product-enterprise-edition") ) + | to_entries + | .[0].value')" + shell: bash + working-directory: ${{ inputs.magento_directory }} + name: Compute Installable Magento version + id: magento-version + - name: Get Composer Cache Directory shell: bash working-directory: ${{ inputs.magento_directory }} @@ -118,6 +128,8 @@ jobs: - run: composer require monolog/monolog:"<2.7.0" --no-update name: Fixup Monolog (https://github.com/magento/magento2/pull/35596) working-directory: ${{ inputs.magento_directory }} + if: | + steps.magento-version.outputs.version == '"2.4.4"' - run: | composer config --no-interaction allow-plugins.dealerdirect/phpcodesniffer-composer-installer true