Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Dec 1, 2021
1 parent 2e38b39 commit 30ebebd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12380,7 +12380,8 @@ exports.setOutput = outputHelper_1.setOutputFactory().setOutput;
function action(_actionName, params, core) {
return __awaiter(this, void 0, void 0, function* () {
core.debug(JSON.stringify(params));
const { owner, repo, branch, github_token } = params;
const { owner, repo, github_token } = params;
const branch = params.branch.split("/").reverse()[0];
const to_version = yield getPackageJsonVersion({ owner, repo, branch });
if (to_version === undefined) {
throw new Error(`No version in package.json on ${owner}/${repo}#${branch} (or repo is private)`);
Expand Down
4 changes: 3 additions & 1 deletion src/is_package_json_version_upgraded.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export async function action(

core.debug(JSON.stringify(params));

const { owner, repo, branch, github_token } = params;
const { owner, repo, github_token } = params;

const branch = params.branch.split("/").reverse()[0];

const to_version = await getPackageJsonVersion({ owner, repo, branch });

Expand Down

0 comments on commit 30ebebd

Please sign in to comment.