Skip to content

Commit

Permalink
Tidying up.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Dec 9, 2024
1 parent 7cb4463 commit 0bb88ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/reusable-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ jobs:
if [ "${WP_VERSION}" == "latest" ]; then
composer install --dev --prefer-dist
elif [ "${WP_VERSION}" == "nightly" ]; then
composer require --dev --update-with-dependencies --prefer-dist roots/wordpress-full="dev-main"
composer require --dev --prefer-dist --update-with-dependencies roots/wordpress-full="dev-main"
elif [[ "${WP_VERSION}" =~ ^[0-9]\.[0-9]$ ]]; then
composer require --dev --update-with-dependencies --prefer-dist roots/wordpress-full="~${WP_VERSION}.0"
composer require --dev --prefer-dist --update-with-dependencies roots/wordpress-full="~${WP_VERSION}.0"
else
composer require --dev --update-with-dependencies --prefer-dist roots/wordpress-full="${WP_VERSION}"
composer require --dev --prefer-dist --update-with-dependencies roots/wordpress-full="${WP_VERSION}"
fi
env:
WP_VERSION: ${{ inputs.wp }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reusable-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ jobs:
if [ "${WP_VERSION}" == "latest" ]; then
composer install --dev --prefer-dist
elif [ "${WP_VERSION}" == "nightly" ]; then
composer require --dev --update-with-dependencies --prefer-dist roots/wordpress-full="dev-main"
composer require --dev --prefer-dist --update-with-dependencies roots/wordpress-full="dev-main"
elif [[ "${WP_VERSION}" =~ ^[0-9]\.[0-9]$ ]]; then
composer require --dev --update-with-dependencies --prefer-dist roots/wordpress-full="~${WP_VERSION}.0"
composer require --dev --prefer-dist --update-with-dependencies roots/wordpress-full="~${WP_VERSION}.0"
else
composer require --dev --update-with-dependencies --prefer-dist roots/wordpress-full="${WP_VERSION}"
composer require --dev --prefer-dist --update-with-dependencies roots/wordpress-full="${WP_VERSION}"
fi
env:
WP_VERSION: ${{ inputs.wp }}
Expand Down

0 comments on commit 0bb88ef

Please sign in to comment.