Fix run event to include event name in act command (#122)
Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
13
src/act.ts
13
src/act.ts
@@ -300,7 +300,18 @@ export class Act {
|
|||||||
for (const workflow of workflows) {
|
for (const workflow of workflows) {
|
||||||
if (event in workflow.yaml.on) {
|
if (event in workflow.yaml.on) {
|
||||||
eventExists = true;
|
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 }
|
||||||
|
]
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user