Describe the feature
Instead of hard-coding a PHP version and having to keeping it up to date every year (vs always getting the most recent version of PHP which may break things), can I set php-version to whatever the lowest currently supported version would be? Currently that would be 8.1 until 25 Nov 2024 as per https://www.php.net/supported-versions.php.
Version
[x] I have checked releases, and the feature is missing in the latest patch version of v2.
Underlying issue
Describe alternatives
Not providing a version and getting the latest release which may break things
Manually providing a specific version but having to update it every year
Describe the feature Instead of hard-coding a PHP version and having to keeping it up to date every year (vs always getting the most recent version of PHP which may break things), can I set
php-version
to whatever the lowest currently supported version would be? Currently that would be 8.1 until 25 Nov 2024 as per https://www.php.net/supported-versions.php.Version
v2
.Underlying issue
Describe alternatives
Additional context The ubuntu-latest image ships with PHP 8.1 and Composer 2.6 as per https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#php-tools but I need this action in order to install tools globally and make them available in the path.
Are you willing to submit a PR? Yes!