From c4b753f104d08d075d6d2b93dc48c7a5ff72ad65 Mon Sep 17 00:00:00 2001 From: Kedar Khaire Date: Tue, 24 Sep 2024 16:47:53 +0530 Subject: [PATCH] condition added for 10.3 --- .github/workflows/php.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 5c812792..e015261f 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -95,7 +95,6 @@ jobs: composer config --no-plugins allow-plugins.cweagans/composer-patches true composer config --no-plugins allow-plugins.php-http/discovery true composer config minimum-stability dev - composer require 'drupal/rules:3.x-dev@dev' composer require wikimedia/composer-merge-plugin composer config --json extra.merge-plugin.require '["modules/contrib/apigee_edge/composer.json"]' composer config platform.php ${{ matrix.php-version }} @@ -107,6 +106,13 @@ jobs: - name: "Allow plugins and dev dependencies for Drupal 10.2" if: ${{ matrix.drupal-core == '10.2.x' }} + run: | + cd drupal + composer require 'drupal/rules:3.x-dev@dev' + composer update --with-all-dependencies + + - name: "Allow plugins and dev dependencies for Drupal 10.3" + if: ${{ matrix.drupal-core == '10.3.x' }} run: | cd drupal composer require 'drupal/rules:^4.0'