Edit missleading comment

This commit is contained in:
Joseph Garrone 2024-06-20 03:47:18 +02:00
parent 42b51ab7b0
commit 4d038d61d0
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View file

@ -280,7 +280,7 @@ function action(_actionName, params, core) {
const branch = params.branch.replace(/^refs\/heads\//, "");
const to_version = yield getPackageJsonVersion({ owner, repo, branch, github_token });
if (to_version === undefined) {
throw new Error(`No version in package.json on ${owner}/${repo}#${branch} (or repo is private)`);
throw new Error(`No version in package.json on ${owner}/${repo}#${branch}`);
}
core.debug(`Version on ${owner}/${repo}#${branch} is ${NpmModuleVersion_1.NpmModuleVersion.stringify(to_version)}`);
const octokit = createOctokit_1.createOctokit({ github_token });

View file

@ -44,7 +44,7 @@ export async function action(
const to_version = await getPackageJsonVersion({ owner, repo, branch, github_token });
if( to_version === undefined ){
throw new Error(`No version in package.json on ${owner}/${repo}#${branch} (or repo is private)`);
throw new Error(`No version in package.json on ${owner}/${repo}#${branch}`);
}