Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Mitrofanov <[email protected]>
  • Loading branch information
name212 committed Sep 20, 2024
1 parent 72dea4d commit 0448bcc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/scripts/js/ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -1380,18 +1380,16 @@ const addReleaseIssueComment = async ({ github, context, core, issue, gitRefInfo
* @returns {Promise<void>}
*/
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) {
Expand Down

0 comments on commit 0448bcc

Please sign in to comment.