Emit installed version, not detected.
This commit is contained in:
parent
e57811bdcb
commit
a4310f9510
2 changed files with 5 additions and 6 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -36,7 +36,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: |
|
||||
echo '{"require": {"php": ">=7.4"}}' > composer.json
|
||||
echo '{"require": {"php": "=7.4"}}' > composer.json
|
||||
- uses: ./.
|
||||
- run: |
|
||||
# Verify that PHP is available
|
||||
|
|
|
@ -17,7 +17,7 @@ inputs:
|
|||
outputs:
|
||||
php_version:
|
||||
description: "The PHP version detected from composer.json"
|
||||
value: ${{ steps.read-php-version.outputs.php_version }}
|
||||
value: ${{ steps.emit-php-detected.outputs.php_version }}
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
|
@ -78,7 +78,6 @@ runs:
|
|||
echo "Composer Cache Key: ${{ steps.composer-cache-find.outputs.key }}"
|
||||
echo "Composer Cache Restore Key: ${{ steps.composer-cache-find.outputs.restore-key }}"
|
||||
fi
|
||||
{
|
||||
# Emit installed php version by major release
|
||||
echo "PHP_VERSION=$PHP_VERSION"
|
||||
} >> $GITHUB_ENV
|
||||
# Emit installed php version by major release
|
||||
echo "PHP_VERSION=$PHP_VERSION" >> $GITHUB_ENV
|
||||
echo "php_version=$PHP_VERSION" >> $GITHUB_OUTPUT
|
||||
|
|
Loading…
Reference in a new issue