Emit installed version, not detected.
This commit is contained in:
parent
23f88bd9c7
commit
e57811bdcb
1 changed files with 6 additions and 3 deletions
|
|
@ -67,9 +67,11 @@ runs:
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composer-cache-find.outputs.dir }}
|
path: ${{ steps.composer-cache-find.outputs.dir }}
|
||||||
key: ${{ steps.composer-cache-find.outputs.key }}
|
key: ${{ steps.composer-cache-find.outputs.key }}
|
||||||
- shell: bash
|
- id: emit-php-detected
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "PHP Version: ${{ steps.read-php-version.outputs.php_version }}"
|
PHP_VERSION=$(php -v | head -n 1 | cut -d ' ' -f 2 | cut -d '.' -f 1,2)
|
||||||
|
echo "PHP Version: $PHP_VERSION"
|
||||||
echo "PHP Tools: ${{ inputs.php_tools }}"
|
echo "PHP Tools: ${{ inputs.php_tools }}"
|
||||||
if [ ${{ steps.read-php-version.outputs.has_composer }} == "true" ]; then
|
if [ ${{ steps.read-php-version.outputs.has_composer }} == "true" ]; then
|
||||||
echo "Composer Cache Dir: ${{ steps.composer-cache-find.outputs.dir }}"
|
echo "Composer Cache Dir: ${{ steps.composer-cache-find.outputs.dir }}"
|
||||||
|
|
@ -77,5 +79,6 @@ runs:
|
||||||
echo "Composer Cache Restore Key: ${{ steps.composer-cache-find.outputs.restore-key }}"
|
echo "Composer Cache Restore Key: ${{ steps.composer-cache-find.outputs.restore-key }}"
|
||||||
fi
|
fi
|
||||||
{
|
{
|
||||||
echo "PHP_VERSION=${{ steps.read-php-version.outputs.php_version }}"
|
# Emit installed php version by major release
|
||||||
|
echo "PHP_VERSION=$PHP_VERSION"
|
||||||
} >> $GITHUB_ENV
|
} >> $GITHUB_ENV
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue