Skip to content

Commit

Permalink
Emit installed version, not detected.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbaggett committed May 18, 2024
1 parent e57811b commit a4310f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

0 comments on commit a4310f9

Please sign in to comment.