mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 20:48:29 +02:00
chore: debug
This commit is contained in:
parent
3e21e45aa4
commit
3c39374369
4 changed files with 8 additions and 8 deletions
|
@ -25,13 +25,13 @@ export default async(release: Release, token: string) => {
|
|||
}
|
||||
})).text()
|
||||
|
||||
console.log(new URL(asset.asset.browser_download_url).host === 'github.com');
|
||||
console.log(new URL(asset.asset.browser_download_url).host.includes('github.com'));
|
||||
const zipPath = await downloadTool(
|
||||
asset.asset.browser_download_url,
|
||||
new URL(asset.asset.browser_download_url).host === 'github.com' ? `token ${token}` : '',
|
||||
new URL(asset.asset.browser_download_url).host.includes('github.com') ? `token ${token}` : '',
|
||||
// @ts-expect-error
|
||||
{
|
||||
'Authorization': new URL(asset.asset.browser_download_url).host === 'github.com' ? `token ${token}` : ''
|
||||
'Authorization': new URL(asset.asset.browser_download_url).host.includes('github.com') ? `token ${token}` : ''
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue