mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-23 10:40:10 +08:00
fix: extract two times for custom urls
This commit is contained in:
parent
1e0686b2cc
commit
38a9038faf
@ -26,7 +26,7 @@ const main = async() => {
|
|||||||
|
|
||||||
info(`Going to install release ${release.version}`);
|
info(`Going to install release ${release.version}`);
|
||||||
|
|
||||||
await install(release, token, customDownloadUrl === null);
|
await install(release, token, customDownloadUrl !== null);
|
||||||
|
|
||||||
setOutput('bun-version', release.tag_name);
|
setOutput('bun-version', release.tag_name);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
@ -5,7 +5,6 @@ import { addPath, info } from '@actions/core';
|
|||||||
import getAsset from './getAsset.js';
|
import getAsset from './getAsset.js';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import { homedir } from 'os';
|
import { homedir } from 'os';
|
||||||
import { readdirSync } from 'fs';
|
|
||||||
|
|
||||||
export default async(release: Release, token: string, customUrl: boolean) => {
|
export default async(release: Release, token: string, customUrl: boolean) => {
|
||||||
const asset = getAsset(release.assets);
|
const asset = getAsset(release.assets);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user