-
Notifications
You must be signed in to change notification settings - Fork 531
Description
Description:
Currently, when you set e.g. dotnet-version: '6.0.x' then the action will install the latest 6.0.x version available online. If this is preinstalled on the current runner image, then no actual installation will happen, only a check; if there is a more recent version available for download from Microsoft (like 6.0.1 is preinstalled but 6.0.2 is released) then it'll download and install that version.
This is all good, but my request would be to add an option to always install the locally available version matching dotnet-version, and only fall back to a download if a local version can't be matched. E.g., if 6.0.1 is preinstalled on the runner image, then just use that for dotnet-version: '6.0.x', even if online a 6.0.2 version is also available.
Related: #284
Justification:
For our builds, we want to keep up to date with the patch versions of .NET, the assumption being that those are safe to auto-update to and also useful because they continuously bring bug fixes. So, we want to tell the action "just install whatever's latest for 6.0.x". However, it's not critical that we're always using the latest version right at the moment it's released, we can wait until GHA images are updated in exchange for not paying the penalty of installation (30-120 seconds) in case the preinstalled version is not the most recent one.
Are you willing to submit a PR?
I wouldn't venture into that for now.