How do you share data from one workflow to another?
IntermediateConceptGitHub Actions
Answer
Within one run, use needs outputs and artifacts. Across workflows: a reusable workflow returns outputs; workflow_run plus actions/download-artifact (with run-id and a token) fetches artifacts from a different run; and repository_dispatch or workflow_dispatch calls can carry a payload or inputs. For long-lived data, publish to a package registry or object store.
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedWhat is a runner, and how do GitHub-hosted and self-hosted runners differ?BeginnerHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?Intermediate