diff --git a/.github/scripts/js/ci.js b/.github/scripts/js/ci.js index 0f0f4d736..f6d70951b 100644 --- a/.github/scripts/js/ci.js +++ b/.github/scripts/js/ci.js @@ -1380,18 +1380,16 @@ const addReleaseIssueComment = async ({ github, context, core, issue, gitRefInfo * @returns {Promise} */ const startWorkflow = async ({ github, context, core, workflow_id, ref, inputs }) => { - core.info(`Start workflow '${workflow_id}' using ref '${ref}' and inputs ${JSON.stringify(inputs)}.`); - - let workflowTarget = ref.replaceAll("-test-1", "") - workflowTarget = ref.replaceAll("-test-2", "") + workflowTarget = workflowTarget.replaceAll("-test-2", "") + core.info(`Start workflow '${workflow_id}' using ref '${workflowTarget}' and inputs ${JSON.stringify(inputs)}.`); let response = null try { response = await github.rest.actions.createWorkflowDispatch({ owner: context.repo.owner, repo: context.repo.repo, workflow_id, - workflowTarget, + ref: workflowTarget, inputs: inputs || {}, }); } catch(error) {