зеркало из https://github.com/github/docs.git
Коммит
106a14c9e9
|
@ -377,6 +377,10 @@ That means if the last successful completing reusable workflow sets an empty str
|
|||
|
||||
The following reusable workflow has a single job containing two steps. In each of these steps we set a single word as the output: "hello" and "world." In the `outputs` section of the job, we map these step outputs to job outputs called: `output1` and `output2`. In the `on.workflow_call.outputs` section we then define two outputs for the workflow itself, one called `firstword` which we map to `output1`, and one called `secondword` which we map to `output2`.
|
||||
|
||||
The `value` must be set to the value of a job-level output within the called workflow. Step-level outputs must first be mapped to job-level outputs as shown below.
|
||||
|
||||
For more information, see "[AUTOTITLE](/actions/using-jobs/defining-outputs-for-jobs#overview)" and "[AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_calloutputs)."
|
||||
|
||||
{% raw %}
|
||||
|
||||
```yaml copy
|
||||
|
|
Загрузка…
Ссылка в новой задаче