Skip to content
1 min read

fj workflow

Manage workflow definitions (trigger a workflow_dispatch)

fj workflow [OPTIONS] <COMMAND>

Every command also accepts the global flags: --host, --debug, --no-pager, --json-fields.

fj workflow list

List workflow files in the repo

fj workflow list [OPTIONS]

Options

  • -R, --repo <REPO> — Target repository as <owner>/<name>. Inferred from the git remote when omitted
  • --json — Emit JSON instead of a table

fj workflow run

Trigger a workflow_dispatch run of a workflow file

fj workflow run [OPTIONS] <WORKFLOW>

Arguments

  • <WORKFLOW> — Workflow file name, e.g. ci.yml

Options

  • -R, --repo <REPO> — Target repository as <owner>/<name>. Inferred from the git remote when omitted
  • --ref <REF> — Git ref (branch or tag) to run on. Defaults to the repo’s default branch
  • -f, --field <FIELDS> — Workflow input as key=value (repeatable)
Contributors
  • Stephen Way