mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
update
This commit is contained in:
parent
2e38b39b5a
commit
30ebebd7e8
2 changed files with 5 additions and 2 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
|
@ -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)`);
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue