From 0ddec5cab66a3c257160363b5c0c62350aab2286 Mon Sep 17 00:00:00 2001 From: odan Date: Sun, 9 Jun 2024 03:16:02 +0900 Subject: [PATCH] add header --- package-lock.json | 27 ++++++++++++++++++--------- package.json | 2 +- src/downloader.ts | 5 ++++- 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9ca30e0..10dbdd2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@actions/core": "^1.2.6", "@actions/github": "^4.0.0", "@actions/io": "^1.0.2", - "@actions/tool-cache": "^1.6.1", + "@actions/tool-cache": "^2.0.1", "@octokit/types": "^5.5.0", "got": "^11.8.1", "uuidv4": "^6.2.6" @@ -84,23 +84,32 @@ } }, "node_modules/@actions/io": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.2.tgz", - "integrity": "sha512-J8KuFqVPr3p6U8W93DOXlXW6zFvrQAJANdS+vw0YhusLIq+bszW8zmK2Fh1C2kDPX8FMvwIl1OUcFgvJoXLbAg==" + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.3.tgz", + "integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==" }, "node_modules/@actions/tool-cache": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.6.1.tgz", - "integrity": "sha512-F+vwEDwfqcHMKuSkj79pihOnsAMv23EkG76nMpc82UsnXwyQdyEsktGxrB0SNtm7pRqTXEIOoAPTgrSQclXYTg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-2.0.1.tgz", + "integrity": "sha512-iPU+mNwrbA8jodY8eyo/0S/QqCKDajiR8OxWTnSk/SnYg0sj8Hp4QcUEVC1YFpHWXtrfbQrE13Jz4k4HXJQKcA==", "dependencies": { "@actions/core": "^1.2.6", "@actions/exec": "^1.0.0", - "@actions/http-client": "^1.0.8", - "@actions/io": "^1.0.1", + "@actions/http-client": "^2.0.1", + "@actions/io": "^1.1.1", "semver": "^6.1.0", "uuid": "^3.3.2" } }, + "node_modules/@actions/tool-cache/node_modules/@actions/http-client": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.1.tgz", + "integrity": "sha512-KhC/cZsq7f8I4LfZSJKgCvEwfkE8o1538VoBeoGzokVLLnbFDEAdFD3UhoMklxo2un9NJVBdANOresx7vTHlHw==", + "dependencies": { + "tunnel": "^0.0.6", + "undici": "^5.25.4" + } + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz", diff --git a/package.json b/package.json index 62e45e4..fb9f26c 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "@actions/core": "^1.2.6", "@actions/github": "^4.0.0", "@actions/io": "^1.0.2", - "@actions/tool-cache": "^1.6.1", + "@actions/tool-cache": "^2.0.1", "@octokit/types": "^5.5.0", "got": "^11.8.1", "uuidv4": "^6.2.6" diff --git a/src/downloader.ts b/src/downloader.ts index 0c7707e..a9aba48 100644 --- a/src/downloader.ts +++ b/src/downloader.ts @@ -69,9 +69,12 @@ export class Downloader { core.setOutput("asset-name", asset.name); const dest = await tc.downloadTool( - asset.browser_download_url, + asset.url, this.cfg.installPath ? this.cfg.installPath : undefined, this.cfg.token, + { + accept: "application/octet-stream", + }, ); core.debug(`Download asset: ${asset.name}`);