Skip to content

Commit

Permalink
Add note about job output scope (#47858)
Browse files Browse the repository at this point in the history
Co-authored-by: Siara <[email protected]>
  • Loading branch information
thyeggman and SiaraMist authored Dec 15, 2023
1 parent 442a2f3 commit f482722
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Job outputs containing expressions are evaluated on the runner at the end of eac

To use job outputs in a dependent job, you can use the `needs` context. For more information, see "[AUTOTITLE](/actions/learn-github-actions/contexts#needs-context)."

{% note %}

**Note:** `$GITHUB_OUTPUT` is shared between all steps in a job. If you use the same output name in multiple steps, the last step to write to the output will override the value. If your job uses a matrix and writes to `$GITHUB_OUTPUT`, the content will be overwritten for each matrix combination. You can use the `matrix` context to create unique output names for each job configuration. For more information, see "[AUTOTITLE](/actions/learn-github-actions/contexts#matrix-context)."

{% endnote %}

### Example: Defining outputs for a job

{% raw %}
Expand Down

0 comments on commit f482722

Please sign in to comment.