mirror of
https://github.com/ivuorinen/actions.git
synced 2026-01-26 11:34:00 +00:00
This commit updates all internal action references to point to the current commit SHA in preparation for release v2025.11.02.
ivuorinen/actions/php-version-detect
PHP Version Detect
Description
Detects the PHP version from the project's composer.json, phpunit.xml, or other configuration files.
Inputs
| name | description | required | default |
|---|---|---|---|
default-version |
Default PHP version to use if no version is detected. |
false |
8.2 |
token |
GitHub token for authentication |
false |
"" |
Outputs
| name | description |
|---|---|
php-version |
Detected or default PHP version. |
Runs
This action is a composite action.
Usage
- uses: ivuorinen/actions/php-version-detect@main
with:
default-version:
# Default PHP version to use if no version is detected.
#
# Required: false
# Default: 8.2
token:
# GitHub token for authentication
#
# Required: false
# Default: ""