Skip to content

Commit

Permalink
Edit missleading comment
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jun 20, 2024
1 parent 42b51ab commit 4d038d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
2 changes: 1 addition & 1 deletion src/is_package_json_version_upgraded.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}


Expand Down

0 comments on commit 4d038d6

Please sign in to comment.