You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the feature
It would be really helpful if the selected & installed php version would be exposed as an environment variable. This can then be used to construct caching keys.
Version
2.11.0
Underlying issue
I use the following YAML config to install PHP:
For using the semver PHP version in actions/cache keys, you will need steps outputs from setup-php. https://github.com/actions/toolkit/blob/main/docs/commands.md#set-outputs
But using semver would clear the cache for each new PHP patch version, is that the intended consequence? If yes, I will add this in the next release.
Describe the feature
It would be really helpful if the selected & installed php version would be exposed as an environment variable. This can then be used to construct caching keys.
Version
2.11.0
Underlying issue
I use the following YAML config to install PHP:
The action automatically installs the latest version when specifying
8
as input version. This is great.But now my cache key is always bound to
8
instead of the actual version.Describe alternatives
Of course, I could run
php -v
command and export the version to the env var myself to solve this.But I do believe more people will encounter this and that it would be great if the action would support it.
Are you willing to submit a PR?
If you can point me to where to apply this I would.
The text was updated successfully, but these errors were encountered: