mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-11 18:46:53 +08:00
Change console logging to core.debug logs
This commit is contained in:
@@ -22,7 +22,7 @@ const os = __importStar(require("os"));
|
||||
const path = __importStar(require("path"));
|
||||
// Store information about the environment
|
||||
const osPlat = os.platform(); // possible values: win32 (Windows), linux (Linux), darwin (macOS)
|
||||
console.log(`[DEBUG] platform: ${osPlat}`);
|
||||
core.debug(`platform: ${osPlat}`);
|
||||
function getMajorMinorVersion(version) {
|
||||
return version.split('.').slice(0, 2).join('.');
|
||||
}
|
||||
@@ -70,10 +70,10 @@ function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
const version = core.getInput('version');
|
||||
console.log(`[DEBUG] selected Julia version: ${version}`);
|
||||
core.debug(`selected Julia version: ${version}`);
|
||||
// Download Julia
|
||||
const downloadURL = getDownloadURL(version);
|
||||
console.log(`[DEBUG] download Julia from ${downloadURL}`);
|
||||
core.debug(`download Julia from ${downloadURL}`);
|
||||
const juliaDownloadPath = yield tc.downloadTool(downloadURL);
|
||||
// Install Julia
|
||||
if (osPlat === 'linux') { // Linux
|
||||
|
||||
@@ -7,7 +7,7 @@ import * as path from 'path'
|
||||
|
||||
// Store information about the environment
|
||||
const osPlat = os.platform() // possible values: win32 (Windows), linux (Linux), darwin (macOS)
|
||||
console.log(`[DEBUG] platform: ${osPlat}`)
|
||||
core.debug(`platform: ${osPlat}`)
|
||||
|
||||
function getMajorMinorVersion(version: string): string {
|
||||
return version.split('.').slice(0, 2).join('.')
|
||||
@@ -56,11 +56,11 @@ function getFileName(version: string): string {
|
||||
async function run() {
|
||||
try {
|
||||
const version = core.getInput('version')
|
||||
console.log(`[DEBUG] selected Julia version: ${version}`)
|
||||
core.debug(`selected Julia version: ${version}`)
|
||||
|
||||
// Download Julia
|
||||
const downloadURL = getDownloadURL(version)
|
||||
console.log(`[DEBUG] download Julia from ${downloadURL}`)
|
||||
core.debug(`download Julia from ${downloadURL}`)
|
||||
const juliaDownloadPath = await tc.downloadTool(downloadURL)
|
||||
|
||||
// Install Julia
|
||||
|
||||
Reference in New Issue
Block a user