update outdated reusable workflow description to reflect output support #41298
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates a sentence in the reusable workflow documentation to reflect current GitHub Actions behavior.
https://github.com/github/docs/blob/main/content/actions/concepts/workflows-and-actions/reusing-workflow-configurations.md
What changed:
The original documentation stated that reusable workflows could not pass values forward after being invoked. GitHub Actions now supports reusable workflow outputs, which can be referenced in subsequent jobs.
Original text:
"You can't add steps to a job after calling a reused workflow, so you can't use GITHUB_ENV to pass values to subsequent job steps in the caller workflow."
Updated text:
"You can't add steps to a job after calling a reused workflow, but reusable workflows now support outputs that can be referenced in subsequent jobs in the caller workflow."
Why this update is needed:
This change removes outdated language and clarifies how reusable workflows now work in GitHub Actions. This improves the accuracy of the documentation and prevents confusion for users.
Related issue:
Closes #41297
Please let me know if any adjustments are needed. Happy to update as required.