-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add ability to select to install matching version already available on the current image #19
base: main
Are you sure you want to change the base?
Conversation
src/dotnet-utils.ts
Outdated
* correct version number like '3.1.201', '3.1.201', '3.1.201', '3.1.201', '6.0.402' | ||
*/ | ||
export const matchVersionToList = (version: string, versions: string[]) => { | ||
if (!version || version === 'x' || version === '*') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is not version
argument is semver specification and semver matcher package can be used in order to match? Also version
can be renamed to versionSpec then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good point, but semver doesn't seem to work correctly with 6.0.4xx
version format, i.e:
semver.satisfies('6.0.402', '6.0.4xx') // -> false (should be true)
- add explicit return type for findMatching version function - force version argument to be defined in createVersionArgument - make dotnetVersion and quality properties readonly
Description:
Adds ability to set preference for already installed versions when setting up dotnet environment. If
prefer-installed
flag is active, action will attempt to check already installed versions with dotnet utility. If matching version exists on the runner, request for this specific version will be passed to the install-script, which has ability to verify already installed version and skip download if current installation is not broken.Related issue:
actions#356
Check list: