mirror of
https://github.com/actions/setup-dotnet.git
synced 2026-06-06 10:47:07 +00:00
Update solution
This commit is contained in:
parent
660c25a321
commit
f199d27aa1
2 changed files with 1 additions and 6 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
|
@ -258,9 +258,6 @@ class DotnetVersionResolver {
|
|||
this.resolvedArgument.type = 'version';
|
||||
this.resolvedArgument.value = this.inputVersion;
|
||||
}
|
||||
else if (!this.inputVersion) {
|
||||
this.resolvedArgument.type = null;
|
||||
}
|
||||
else {
|
||||
this.resolvedArgument.type = 'channel';
|
||||
const [major, minor] = this.inputVersion.split('.');
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import {IS_LINUX, IS_WINDOWS} from './utils';
|
|||
import {QualityOptions} from './setup-dotnet';
|
||||
|
||||
export interface DotnetVersion {
|
||||
type: string | null;
|
||||
type: string;
|
||||
value: string;
|
||||
qualityFlag: boolean;
|
||||
}
|
||||
|
|
@ -36,8 +36,6 @@ export class DotnetVersionResolver {
|
|||
if (semver.valid(this.inputVersion)) {
|
||||
this.resolvedArgument.type = 'version';
|
||||
this.resolvedArgument.value = this.inputVersion;
|
||||
} else if (!this.inputVersion) {
|
||||
this.resolvedArgument.type = null;
|
||||
} else {
|
||||
this.resolvedArgument.type = 'channel';
|
||||
const [major, minor] = this.inputVersion.split('.');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue