Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
ef3e0d569b | ||
|
d818a11eb2 | ||
|
68e0df6771 |
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
@ -2,7 +2,7 @@ import * as core from '@actions/core'
|
||||
import * as tc from '@actions/tool-cache'
|
||||
import os from 'os'
|
||||
|
||||
const BinBaseUrl = 'https://nodejs.org/dist/'
|
||||
const BinBaseUrl = 'https://joylink.club/public-files/nodejs'
|
||||
const DestDir = '/denv'
|
||||
|
||||
export function getFileName(version: string): string {
|
||||
@ -18,7 +18,7 @@ export async function getInstalledPath(
|
||||
version: string,
|
||||
fileName: string
|
||||
): Promise<string> {
|
||||
const downloadUrl = `${BinBaseUrl}${version}/${fileName}`
|
||||
const downloadUrl = `${BinBaseUrl}/${fileName}`
|
||||
core.info(`Downloading from ${downloadUrl}`)
|
||||
const downloadPath = await tc.downloadTool(downloadUrl)
|
||||
core.info(`Extracting from ${downloadPath}`)
|
||||
|
Loading…
Reference in New Issue
Block a user