Simple caching for parsed workflow and template
This commit is contained in:
@@ -38,7 +38,7 @@ jobs:
|
||||
`convertWorkflowTemplate` then takes that intermediate representation and converts it to a [`WorkflowTemplate`](./src/workflow-template.ts) object, which is a more convenient representation for working with workflows.
|
||||
|
||||
```typescript
|
||||
const workflowTemplate = await convertWorkflowTemplate(result.context, result.value);
|
||||
const workflowTemplate = await convertWorkflowTemplate("test.yaml", result.context, result.value);
|
||||
|
||||
// workflowTemplate.jobs[0].id === "build"
|
||||
// workflowTemplate.jobs[0].steps[0].run === "echo 'hello'"
|
||||
|
||||
Reference in New Issue
Block a user