Change console logging to core.debug logs

This commit is contained in:
Sascha Mann
2019-08-13 16:40:55 +02:00
parent 371167db47
commit 6182d4ae38
2 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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