feat: log obtained version

This commit is contained in:
Jozef Steinhübl 2024-05-07 21:08:57 +02:00
parent ce012a6d4f
commit 11f18d9470
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

@ -1,4 +1,5 @@
import { debug, warning } from "@actions/core";
import { info } from "node:console";
import { existsSync, readFileSync } from "node:fs";
import { join, basename } from "node:path";
@ -52,7 +53,6 @@ export function readVersionFromFile(
}
const reader = FILE_VERSION_READERS[base] ?? (() => undefined);
console.log(base, reader);
let output: string | undefined;
try {
@ -67,7 +67,7 @@ export function readVersionFromFile(
warning(`Failed to read ${file}: ${message}`);
} finally {
if (output) {
debug(`Found version ${output}`);
info(`Obtained version ${output} from ${file}`);
return output;
}
}