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, "''");
|
.replace(/'/g, "''");
|
||||||
let command = `& '${escapedScript}'`;
|
let command = `& '${escapedScript}'`;
|
||||||
command += ` ${versionObject.type} ${versionObject.value}`;
|
command += ` ${versionObject.type} ${versionObject.value}`;
|
||||||
if (this.quality && versionObject.qualityFlag) {
|
if (this.quality) {
|
||||||
command += ` -Quality ${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) {
|
if (process.env['https_proxy'] != null) {
|
||||||
command += ` -ProxyAddress ${process.env['https_proxy']}`;
|
command += ` -ProxyAddress ${process.env['https_proxy']}`;
|
||||||
@ -320,8 +325,13 @@ class DotnetCoreInstaller {
|
|||||||
const scriptPath = yield io.which(escapedScript, true);
|
const scriptPath = yield io.which(escapedScript, true);
|
||||||
let scriptArguments = [];
|
let scriptArguments = [];
|
||||||
scriptArguments.push(versionObject.type, versionObject.value);
|
scriptArguments.push(versionObject.type, versionObject.value);
|
||||||
if (this.quality && versionObject.qualityFlag) {
|
if (this.quality) {
|
||||||
scriptArguments.push("--quality", 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) {
|
if (IS_LINUX) {
|
||||||
scriptArguments.push('--install-dir', installationDirectoryLinux);
|
scriptArguments.push('--install-dir', installationDirectoryLinux);
|
||||||
|
@ -116,10 +116,14 @@ export class DotnetCoreInstaller {
|
|||||||
|
|
||||||
command += ` ${versionObject.type} ${versionObject.value}`;
|
command += ` ${versionObject.type} ${versionObject.value}`;
|
||||||
|
|
||||||
if (this.quality && versionObject.qualityFlag) {
|
if (this.quality) {
|
||||||
command += ` -Quality ${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) {
|
if (process.env['https_proxy'] != null) {
|
||||||
command += ` -ProxyAddress ${process.env['https_proxy']}`;
|
command += ` -ProxyAddress ${process.env['https_proxy']}`;
|
||||||
}
|
}
|
||||||
@ -168,8 +172,12 @@ export class DotnetCoreInstaller {
|
|||||||
|
|
||||||
scriptArguments.push(versionObject.type, versionObject.value);
|
scriptArguments.push(versionObject.type, versionObject.value);
|
||||||
|
|
||||||
if (this.quality && versionObject.qualityFlag) {
|
if (this.quality) {
|
||||||
scriptArguments.push("--quality", 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) {
|
if (IS_LINUX) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user