-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Add support for PHP version "latest" #293
Comments
I did not add aliases like That said, if you want to do this, here is how -
For example: setup default version - name: Setup PHP
uses: shivammathur/setup-php@v2
with:
extensions: intl #inputs other than php-version
For example to have a workflow with 7.3 and the default (7.4) strategy:
matrix:
php-versions: [7.3, null] - name: Setup PHP
uses: shivammathur/setup-php@v2
env:
php-version: ${{ matrix.php-version }} |
Hi, I noticed the field having a default in action.yml, but it's also marked as required, wouldn't it cause an issue to omit it? Thanks! |
ok, I will add support for |
@marekdedic - name: Setup PHP
uses: shivammathur/setup-php@v2
env:
php-version: latest |
Thanks! |
Describe the feature
Hi, for some of my GH action runs, I'd like them to run on the latest PHP (7.4 at the time of writing), without having to think about updating it in the config every time a new version is released. I imagined I would be able to specify
php-version: latest
, but according to the documentation, it's not so.I would even propose making it the default choice, but that's up to you...
Version
v2
.Underlying issue
Having to remember to update the PHP version every year
Describe alternatives
Doing it by hand...
Are you willing to submit a PR?
Yes, if I know the feature is considered merge-able. But someone would probably have to maintain this...
The text was updated successfully, but these errors were encountered: