update outdated reusable workflow description to reflect output support#41298
update outdated reusable workflow description to reflect output support#41298SasiSriram wants to merge 1 commit intogithub:mainfrom
Conversation
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.
|
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. The table shows the files in the
Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server 🤖 This comment is automatically generated. |
|
A stale label has been added to this pull request because it has been open 30 days with no activity. If you think this pull request should remain open, please add a new comment. |
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.