| 475 | const progressName = `Running ${lifecycleHookName}...`; |
| 476 | const infoOutput = makeLog({ |
| 477 | event(e: LogEvent) { |
| 478 | lifecycleHook.output.event(e); |
| 479 | if (e.type === 'raw' && e.text.includes('::endstep::')) { |
| 480 | lifecycleHook.output.event({ |
| 481 | type: 'progress', |
| 482 | name: progressName, |
| 483 | status: 'running', |
| 484 | stepDetail: '' |
| 485 | }); |
| 486 | } |
| 487 | if (e.type === 'raw' && e.text.includes('::step::')) { |
| 488 | lifecycleHook.output.event({ |
| 489 | type: 'progress', |
| 490 | name: progressName, |
| 491 | status: 'running', |
| 492 | stepDetail: `${e.text.split('::step::')[1].split('\r\n')[0]}` |
| 493 | }); |
| 494 | } |
| 495 | }, |
| 496 | get dimensions() { |
| 497 | return lifecycleHook.output.dimensions; |
| 498 | }, |