@@ -85283,7 +85283,7 @@ function getOctokit(token, options, ...additionalPlugins) {
8528385283}
8528485284getOctokit_1 = github.getOctokit = getOctokit;
8528585285async function run() {
85286- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
85286+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v ;
8528785287 const octokit = getOctokit_1(coreExports.getInput("github_token"));
8528885288 const { repo, owner } = context.repo;
8528985289 const outputs = {
@@ -85294,7 +85294,8 @@ async function run() {
8529485294 mergeable: false,
8529585295 merge_sha: false,
8529685296 found_pr: false,
85297- labels: []
85297+ labels: [],
85298+ actor: false
8529885299 };
8529985300 const open_pull_requests = await get_prs(octokit, repo, owner);
8530085301 if (context.eventName === "push") {
@@ -85395,6 +85396,7 @@ async function run() {
8539585396 merge_sha,
8539685397 labels
8539785398 } = get_pr_details_from_title(open_pull_requests, title);
85399+ console.log(JSON.stringify(context, null, 2));
8539885400 outputs.source_repo = source_repo || false;
8539985401 outputs.source_branch = source_branch || false;
8540085402 outputs.pr_number = pr_number ?? false;
@@ -85403,7 +85405,8 @@ async function run() {
8540385405 outputs.mergeable = mergeable === "MERGEABLE" ? true : false;
8540485406 outputs.merge_sha = merge_sha || sha || false;
8540585407 outputs.labels = labels;
85406- } else if ((_t = (_s = context.payload) == null ? void 0 : _s.workflow_run) == null ? void 0 : _t.event) {
85408+ outputs.actor = ((_t = (_s = context.payload.workflow_run) == null ? void 0 : _s.actor) == null ? void 0 : _t.login) || false;
85409+ } else if ((_v = (_u = context.payload) == null ? void 0 : _u.workflow_run) == null ? void 0 : _v.event) {
8540785410 coreExports.setFailed(
8540885411 "This action can only be run on pull_request, push, or issue_comment events or workflow_run events triggered from those events."
8540985412 );
0 commit comments