From 7d0a463a18967225a52548d9cd38e71ef7ea5894 Mon Sep 17 00:00:00 2001 From: patrickleet <474827+patrickleet@users.noreply.github.com> Date: Wed, 1 Oct 2025 17:53:30 +0000 Subject: [PATCH] build: update distribution --- dist/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index a807129b7..679127815 100644 --- a/dist/index.js +++ b/dist/index.js @@ -367,8 +367,8 @@ class GitHubHelper { if (count == 10) break; } - yield this.octokit.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow}/dispatches', Object.assign(Object.assign({}, this.parseRepository(cmd.repository)), { workflow: workflow, ref: ref, inputs: inputs })); - core.info(`Command '${cmd.command}' dispatched to workflow '${workflowName}' in '${cmd.repository}'`); + yield this.octokit.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', Object.assign(Object.assign({}, this.parseRepository(cmd.repository)), { workflow_id: workflow, ref: ref, inputs: inputs })); + core.info(`Command '${cmd.command}' dispatched to workflow '${workflow}' in '${cmd.repository}'`); }); } getWorkflow(repository, workflowName) { @@ -376,8 +376,9 @@ class GitHubHelper { core.debug(`Getting workflow ${workflowName} for repository ${repository}`); const { data: workflows } = yield this.octokit.rest.actions.listRepoWorkflows(Object.assign({}, this.parseRepository(repository))); for (const workflow of workflows.workflows) { - if (workflow.path === `${workflowName}.yml` || workflow.path === `${workflowName}.yaml`) { - core.info(`Selecting workflow file ${workflow.path}`); + if (workflow.path === `${workflowName}.yml` || + workflow.path === `${workflowName}.yaml`) { + core.debug(`Selecting workflow file ${workflow.path}`); return workflow.path; } }