feat: log obtained version
This commit is contained in:
parent
ce012a6d4f
commit
11f18d9470
@ -1,4 +1,5 @@
|
|||||||
import { debug, warning } from "@actions/core";
|
import { debug, warning } from "@actions/core";
|
||||||
|
import { info } from "node:console";
|
||||||
import { existsSync, readFileSync } from "node:fs";
|
import { existsSync, readFileSync } from "node:fs";
|
||||||
import { join, basename } from "node:path";
|
import { join, basename } from "node:path";
|
||||||
|
|
||||||
@ -52,7 +53,6 @@ export function readVersionFromFile(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const reader = FILE_VERSION_READERS[base] ?? (() => undefined);
|
const reader = FILE_VERSION_READERS[base] ?? (() => undefined);
|
||||||
console.log(base, reader);
|
|
||||||
|
|
||||||
let output: string | undefined;
|
let output: string | undefined;
|
||||||
try {
|
try {
|
||||||
@ -67,7 +67,7 @@ export function readVersionFromFile(
|
|||||||
warning(`Failed to read ${file}: ${message}`);
|
warning(`Failed to read ${file}: ${message}`);
|
||||||
} finally {
|
} finally {
|
||||||
if (output) {
|
if (output) {
|
||||||
debug(`Found version ${output}`);
|
info(`Obtained version ${output} from ${file}`);
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user