mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-20 07:35:10 +00:00
Add proxy settings to the windows script
This commit is contained in:
parent
fe82455c0b
commit
f87d15e234
7
dist/index.js
vendored
7
dist/index.js
vendored
@ -16739,6 +16739,13 @@ class DotnetCoreInstaller {
|
|||||||
if (calculatedVersion) {
|
if (calculatedVersion) {
|
||||||
command += ` -Version ${calculatedVersion}`;
|
command += ` -Version ${calculatedVersion}`;
|
||||||
}
|
}
|
||||||
|
if (process.env['https_proxy'] != null) {
|
||||||
|
command += ` -ProxyAddress ${process.env['https_proxy']}`;
|
||||||
|
}
|
||||||
|
// This is not currently an option
|
||||||
|
if (process.env['no_proxy'] != null) {
|
||||||
|
command += ` -ProxyBypassList ${process.env['no_proxy']}`;
|
||||||
|
}
|
||||||
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
|
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
|
||||||
const powershellPath = yield io.which('powershell', true);
|
const powershellPath = yield io.which('powershell', true);
|
||||||
var options = {
|
var options = {
|
||||||
|
@ -115,6 +115,13 @@ export class DotnetCoreInstaller {
|
|||||||
if (calculatedVersion) {
|
if (calculatedVersion) {
|
||||||
command += ` -Version ${calculatedVersion}`;
|
command += ` -Version ${calculatedVersion}`;
|
||||||
}
|
}
|
||||||
|
if (process.env['https_proxy'] != null) {
|
||||||
|
command += ` -ProxyAddress ${process.env['https_proxy']}`;
|
||||||
|
}
|
||||||
|
// This is not currently an option
|
||||||
|
if (process.env['no_proxy'] != null) {
|
||||||
|
command += ` -ProxyBypassList ${process.env['no_proxy']}`;
|
||||||
|
}
|
||||||
|
|
||||||
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
|
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
|
||||||
const powershellPath = await io.which('powershell', true);
|
const powershellPath = await io.which('powershell', true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user