Skip to content

Commit

Permalink
Fix run event to include event name in act command (#122)
Browse files Browse the repository at this point in the history
Signed-off-by: Sanjula Ganepola <[email protected]>
  • Loading branch information
SanjulaGanepola authored Dec 15, 2024
1 parent 5d9090b commit e92c249
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/act.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,18 @@ export class Act {
for (const workflow of workflows) {
if (event in workflow.yaml.on) {
eventExists = true;
await this.runWorkflow(workspaceFolder, workflow);
await this.runCommand({
path: workspaceFolder.uri.fsPath,
workflow: workflow,
options: [
`${event} ${Option.Workflows} ".github/workflows/${path.parse(workflow.uri.fsPath).base}"`
],
name: `${workflow.name} (${event})`,
extraHeader: [
{ key: 'Workflow', value: workflow.name },
{ key: 'Event', value: event }
]
});
}
}

Expand Down

0 comments on commit e92c249

Please sign in to comment.