From 0039f448c594a78af5f010cd3f06af18d464d9ee Mon Sep 17 00:00:00 2001 From: redanthrax Date: Tue, 28 Jun 2022 17:12:31 -0700 Subject: [PATCH] ran format and fixed licensed --- ...ent.dep.yml => http-client-1.0.11.dep.yml} | 0 .../npm/@actions/http-client-2.0.1.dep.yml | 32 +++++++++++++++++++ .licenses/npm/@actions/tool-cache.dep.yml | 2 +- src/installer.ts | 2 +- 4 files changed, 34 insertions(+), 2 deletions(-) rename .licenses/npm/@actions/{http-client.dep.yml => http-client-1.0.11.dep.yml} (100%) create mode 100644 .licenses/npm/@actions/http-client-2.0.1.dep.yml diff --git a/.licenses/npm/@actions/http-client.dep.yml b/.licenses/npm/@actions/http-client-1.0.11.dep.yml similarity index 100% rename from .licenses/npm/@actions/http-client.dep.yml rename to .licenses/npm/@actions/http-client-1.0.11.dep.yml diff --git a/.licenses/npm/@actions/http-client-2.0.1.dep.yml b/.licenses/npm/@actions/http-client-2.0.1.dep.yml new file mode 100644 index 0000000..5c60ad3 --- /dev/null +++ b/.licenses/npm/@actions/http-client-2.0.1.dep.yml @@ -0,0 +1,32 @@ +--- +name: "@actions/http-client" +version: 2.0.1 +type: npm +summary: Actions Http Client +homepage: https://github.com/actions/toolkit/tree/main/packages/http-client +license: mit +licenses: +- sources: LICENSE + text: | + Actions Http Client for Node.js + + Copyright (c) GitHub, Inc. + + All rights reserved. + + MIT License + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and + associated documentation files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT + LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +notices: [] diff --git a/.licenses/npm/@actions/tool-cache.dep.yml b/.licenses/npm/@actions/tool-cache.dep.yml index 25e0b05..fbf911f 100644 --- a/.licenses/npm/@actions/tool-cache.dep.yml +++ b/.licenses/npm/@actions/tool-cache.dep.yml @@ -1,6 +1,6 @@ --- name: "@actions/tool-cache" -version: 1.7.2 +version: 2.0.1 type: npm summary: Actions tool-cache lib homepage: https://github.com/actions/toolkit/tree/main/packages/tool-cache diff --git a/src/installer.ts b/src/installer.ts index 48c4cb4..944b64f 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -134,7 +134,7 @@ async function installGoVersion( core.info(`Acquiring ${info.resolvedVersion} from ${info.downloadUrl}`); let downloadPath: string; const platform = os.platform(); - if(platform === 'win32') { + if (platform === 'win32') { downloadPath = await tc.downloadTool(info.downloadUrl, info.fileName, auth); } else { downloadPath = await tc.downloadTool(info.downloadUrl, undefined, auth);