Running jobs in series

By default, jobs will run in parallel. If we want jobs to run in series we need to specify the needs key. This key takes as its value an array of job names. The job will only run once all jobs in the array have finished successfully.

Running jobs in series

We can also create actions that capture output. To do so we must echo the output of a previous step. We access it by referencing it with

"${{ steps.step_id.outputs.output_element }}"

The steps variable is created by GitHub. The step id we need to define it ourselves in the action that we want to reference. The outputs attribute is created by GitHub, and the output_element is defined by the creator of the action. Check the action's documentation to find which elements can be output, and their names.

Running jobs in series 2