Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to always use the lowest stable version of PHP #793

Closed
1 task done
davereid opened this issue Nov 29, 2023 · 1 comment
Closed
1 task done

Ability to always use the lowest stable version of PHP #793

davereid opened this issue Nov 29, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@davereid
Copy link
Contributor

davereid commented Nov 29, 2023

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

  • 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

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!

@davereid davereid added the enhancement New feature or request label Nov 29, 2023
@davereid davereid changed the title Ability to always use the LTS version of PHP Ability to always use the LTS/stable version of PHP Nov 29, 2023
@davereid davereid changed the title Ability to always use the LTS/stable version of PHP Ability to always use the lowest stable version of PHP Nov 29, 2023
@shivammathur
Copy link
Owner

Released 2.29.0 with support for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants