DocsWorkflowsComponentsMachinemachine:extension:sync

machine:extension:sync

Pushes the canonical fragment library to the connected browser extension and waits for its ack, so a pipeline seeds (or replaces) the fragment set that later machine:extension:run and machine:extension:sequence steps reference by id. The fragments are plain workflow JSON files in the extension's wire schema, one workflow per file.

Options

NameTypeDescription
dirstringA directory of fragment JSON files to push, read in name order
files[]stringExplicit fragment JSON files to push, after any Dir fragments
replaceboolSwap the extension's whole library for the pushed set instead of merging by id
client_idstringThe extension client to push to, a hint the host may honour; empty leaves the choice of browser to the host
timeout_msintHow long to wait for the extension's ack (default 10 minutes)

Outputs

NameTypeDescription
countintHow many fragments were pushed
workflow_ids[]stringThe ids of the pushed fragments, in push order

Example

name: Seed the extension's fragment library
actions:
  - name: sync
    component: machine:extension:sync
    vars:
      dir: ./workflows/swedbank
      replace: true

outputs:
  pushed: "{{ sync.count }}"