Skip to content

Workflow builder

A workflow is a document of coeval. This page edits the document. A step of a general workflow calls a procedure of a catalog. The GitHub add-on writes a GitHub workflow as YAML. You do not type code: each condition and each value is a set of blocks.

✓ No problem

Starts
  1. A clickA person starts the workflow, with its inputs.
Inputs
Env of the workflow
Outputs of the workflow
1 step
Run rules none
Time limit of the job

The job runs with the grants of the workspace default. It needs no runner label.

  1. procedureCall git.clone
    Run rules none
    Time limit
    url

    Clone repository

    Add an input
Env of the job main
Outputs of the job main

Select the handle of a value, or drag a block onto a value.

The jobs

main1 step

The check

✓ No problem

The catalogs

7 procedures4 events and feeds

A sample catalog. Its names come from the client packages. Load the manifest of your host for the live list.

Sample starts: two events and two feeds. Load the starts of your host for its live events and feeds.

The check knows no workspace of 4 procedures that change data (git.clone, git.commit, notify.send, and more). The check cannot see the workspaces that they touch until the client marks them (row W24). Thus "No problem" does not cover their grants.

The document

{
  "type": "workflow",
  "value": {
    "name": "My workflow",
    "workspace": "default",
    "triggers": [
      {
        "type": [
          "trigger",
          "manual"
        ],
        "value": {}
      }
    ],
    "jobs": {
      "main": {
        "type": "job",
        "value": {
          "steps": [
            {
              "type": "step",
              "value": {
                "id": "clone",
                "do": {
                  "type": [
                    "procedure",
                    "git",
                    "clone"
                  ],
                  "value": {
                    "url": ""
                  }
                }
              }
            }
          ]
        }
      }
    }
  }
}

Each change is an edit of one workflow document. The check, the diagram, the document and the YAML come from it, thus they always agree. A general step calls a procedure of the catalog, and its inputs come from the schema of the procedure. An imported file keeps its comments.

  1. Start from a new workflow, or select a file of the corpus. You can also paste the YAML of your own workflow.
  2. Add starts, jobs and steps with the buttons. In a general workflow, Call a procedure searches the catalog. A click adds a step that calls the procedure. Select a job in Waits for to make a job wait for it.
  3. Select + on an input of the step to set it. The schema of the procedure gives the inputs, and the needed inputs have a mark.
  4. Select the handle of a value. The tray at the bottom shows the blocks, and the values that this place can read.
  5. Select a block or a value to put it in the place. With a mouse, you can also drag a block onto a value.
  6. Copy the document or the YAML when the check shows no problem.
  • The builder is the entry @mark1russell7/workflow-github/builder. A host page mounts it with mountBuilder and gives the colors of its theme.
  • @mark1russell7/workflow holds the document, the check, the edits and the scope of each place. The tray offers only the values that a place can read, thus each choice passes the check.
  • @mark1russell7/workflow-github reads and writes the YAML. An imported file keeps its comments, because the export changes only the edited nodes.
  • ireko puts each job after the jobs that it needs. The corner router of @mark1russell7/highways routes each need around the boxes.
  • Download as a board gives the diagram as a document of @mark1russell7/board, for a board editor.

The page starts with a sample catalog. Its names come from the client packages. A host gives its live catalog with the procedure procedure.manifest. Type the address of the manifest and select Load. The check then uses the facts of each procedure: its needed inputs, and the workspaces that it reads and writes.

A secret is a reference, not a value. The check permits a secret only in an input of a step, in a value of env and in the test “the secret is not empty”. The page does not see the value of a secret at any time.