diff --git a/lib/setup-julia.js b/lib/setup-julia.js index 1bb81cb..e0c94cb 100644 --- a/lib/setup-julia.js +++ b/lib/setup-julia.js @@ -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 diff --git a/src/setup-julia.ts b/src/setup-julia.ts index e25c974..a45a1b2 100644 --- a/src/setup-julia.ts +++ b/src/setup-julia.ts @@ -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