Skip to content

Commit 3e9fe4d

Browse files
authored
update outdated reusable workflow description to reflect output support
Updates outdated documentation stating reusable workflows cannot pass values to later steps or jobs. GitHub Actions now supports reusable workflow outputs, so the sentence has been updated for accuracy.
1 parent e7eb06f commit 3e9fe4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/actions/concepts/workflows-and-actions/reusing-workflow-configurations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Let's compare some aspects of each solution:
4444
* **Workflow jobs** - Composite actions contain a series of steps that are run as a single step within the caller workflow. Unlike reusable workflows, they cannot contain jobs.
4545
* **Logging** - When a composite action runs, the log will show just the step in the caller workflow that ran the composite action, not the individual steps within the composite action. With reusable workflows, every job and step is logged separately.
4646
* **Specifying runners** - Reusable workflows contain one or more jobs. As with all workflow jobs, the jobs in a reusable workflow specify the type of machine on which the job will run. Therefore, if the steps must be run on a type of machine that might be different from the machine chosen for the calling workflow job, then you should use a reusable workflow, not a composite action.
47-
* **Passing output to steps** - A composite action is run as a step within a workflow job, and you can have multiple steps before or after the step that runs the composite action. Reusable workflows are called directly within a job, and not from within a job step. You can't add steps to a job after calling a reusable workflow, so you can't use `GITHUB_ENV` to pass values to subsequent job steps in the caller workflow.
47+
* **Passing output to steps** - A composite action is run as a step within a workflow job, and you can have multiple steps before or after the step that runs the composite action. Reusable workflows are called directly within a job, and not from within a job step. You can't add steps to a job after calling a reusable workflow, but reusable workflows now support outputs that can be referenced in subsequent jobs in the caller workflow.
4848

4949
### Key differences between reusable workflows and composite actions
5050

0 commit comments

Comments
 (0)