12345678910 |
- // Trigger a specific workflow on a specific branch.
- module.exports = async ({github, context, branchTargeted, workflowToTrigger}) => {
- console.log(`Run the workflow #${workflowToTrigger} on the branch '${branchTargeted}'`);
- await github.rest.actions.createWorkflowDispatch({
- owner: context.repo.owner,
- repo: context.repo.repo,
- workflow_id: workflowToTrigger,
- ref: branchTargeted,
- })
- }
|