mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-18 14:45:09 +00:00
Fix bug with warning
This commit is contained in:
parent
48c496df53
commit
536591c258
18
dist/index.js
vendored
18
dist/index.js
vendored
@ -280,8 +280,13 @@ class DotnetCoreInstaller {
|
||||
.replace(/'/g, "''");
|
||||
let command = `& '${escapedScript}'`;
|
||||
command += ` ${versionObject.type} ${versionObject.value}`;
|
||||
if (this.quality && versionObject.qualityFlag) {
|
||||
command += ` -Quality ${this.quality}`;
|
||||
if (this.quality) {
|
||||
if (versionObject.qualityFlag) {
|
||||
command += ` -Quality ${this.quality}`;
|
||||
}
|
||||
else {
|
||||
core.warning("'dotnet-quality' input can't be used with exact version of .NET. 'dotnet-quality' input is ignored.");
|
||||
}
|
||||
}
|
||||
if (process.env['https_proxy'] != null) {
|
||||
command += ` -ProxyAddress ${process.env['https_proxy']}`;
|
||||
@ -320,8 +325,13 @@ class DotnetCoreInstaller {
|
||||
const scriptPath = yield io.which(escapedScript, true);
|
||||
let scriptArguments = [];
|
||||
scriptArguments.push(versionObject.type, versionObject.value);
|
||||
if (this.quality && versionObject.qualityFlag) {
|
||||
scriptArguments.push("--quality", this.quality);
|
||||
if (this.quality) {
|
||||
if (versionObject.qualityFlag) {
|
||||
scriptArguments.push("--quality", this.quality);
|
||||
}
|
||||
else {
|
||||
core.warning("'dotnet-quality' input can't be used with exact version of .NET. 'dotnet-quality' input is ignored.");
|
||||
}
|
||||
}
|
||||
if (IS_LINUX) {
|
||||
scriptArguments.push('--install-dir', installationDirectoryLinux);
|
||||
|
@ -116,8 +116,12 @@ export class DotnetCoreInstaller {
|
||||
|
||||
command += ` ${versionObject.type} ${versionObject.value}`;
|
||||
|
||||
if (this.quality && versionObject.qualityFlag) {
|
||||
command += ` -Quality ${this.quality}`;
|
||||
if (this.quality) {
|
||||
if (versionObject.qualityFlag) {
|
||||
command += ` -Quality ${this.quality}`;
|
||||
} else {
|
||||
core.warning("'dotnet-quality' input can't be used with exact version of .NET. 'dotnet-quality' input is ignored.");
|
||||
}
|
||||
}
|
||||
|
||||
if (process.env['https_proxy'] != null) {
|
||||
@ -168,8 +172,12 @@ export class DotnetCoreInstaller {
|
||||
|
||||
scriptArguments.push(versionObject.type, versionObject.value);
|
||||
|
||||
if (this.quality && versionObject.qualityFlag) {
|
||||
scriptArguments.push("--quality", this.quality);
|
||||
if (this.quality) {
|
||||
if (versionObject.qualityFlag){
|
||||
scriptArguments.push("--quality", this.quality);
|
||||
} else {
|
||||
core.warning("'dotnet-quality' input can't be used with exact version of .NET. 'dotnet-quality' input is ignored.");
|
||||
}
|
||||
}
|
||||
|
||||
if (IS_LINUX) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user